blob: ddf7a626f1a905ca03fd774781d63861b3b657c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include <efsw/efsw.hpp>
namespace efsw { namespace Errors {
static std::string LastError;
std::string Log::getLastErrorLog() {
return LastError;
}
Error Log::createLastError( Error err, std::string log ) {
switch ( err ) {
case FileNotFound:
LastError = "File not found ( " + log + " )";
break;
case FileRepeated:
LastError = "File reapeated in watches ( " + log + " )";
break;
case FileOutOfScope:
LastError = "Symlink file out of scope ( " + log + " )";
break;
case FileRemote:
LastError =
"File is located in a remote file system, use a generic watcher. ( " + log + " )";
break;
case Unspecified:
default:
LastError = log;
}
return err;
}
}} // namespace efsw::Errors
|