aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/efsw/Log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdParty/efsw/Log.cpp')
-rwxr-xr-xsrc/3rdParty/efsw/Log.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/3rdParty/efsw/Log.cpp b/src/3rdParty/efsw/Log.cpp
new file mode 100755
index 0000000..ddf7a62
--- /dev/null
+++ b/src/3rdParty/efsw/Log.cpp
@@ -0,0 +1,34 @@
1#include <efsw/efsw.hpp>
2
3namespace efsw { namespace Errors {
4
5static std::string LastError;
6
7std::string Log::getLastErrorLog() {
8 return LastError;
9}
10
11Error Log::createLastError( Error err, std::string log ) {
12 switch ( err ) {
13 case FileNotFound:
14 LastError = "File not found ( " + log + " )";
15 break;
16 case FileRepeated:
17 LastError = "File reapeated in watches ( " + log + " )";
18 break;
19 case FileOutOfScope:
20 LastError = "Symlink file out of scope ( " + log + " )";
21 break;
22 case FileRemote:
23 LastError =
24 "File is located in a remote file system, use a generic watcher. ( " + log + " )";
25 break;
26 case Unspecified:
27 default:
28 LastError = log;
29 }
30
31 return err;
32}
33
34}} // namespace efsw::Errors