diff options
author | Daniel Wilhelm <daniel@wili.li> | 2015-10-02 14:56:07 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2015-10-02 14:56:07 +0200 |
commit | de73d25e0b27f4bee2de116d19cab32800785d64 (patch) | |
tree | 21de1736d12a92223ad04c02a5b0826d77e5e71c /zen/sys_error.h | |
parent | 7.1 (diff) | |
download | FreeFileSync-de73d25e0b27f4bee2de116d19cab32800785d64.tar.gz FreeFileSync-de73d25e0b27f4bee2de116d19cab32800785d64.tar.bz2 FreeFileSync-de73d25e0b27f4bee2de116d19cab32800785d64.zip |
7.2
Diffstat (limited to 'zen/sys_error.h')
-rw-r--r-- | zen/sys_error.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zen/sys_error.h b/zen/sys_error.h index 7fb12d31..16e59266 100644 --- a/zen/sys_error.h +++ b/zen/sys_error.h @@ -46,6 +46,7 @@ private: std::wstring msg_; }; +#define DEFINE_NEW_SYS_ERROR(X) struct X : public SysError { X(const std::wstring& msg) : SysError(msg) {} }; @@ -92,7 +93,7 @@ std::wstring formatSystemErrorRaw(ErrorCode ec) //return empty string on error errorMsg = utfCvrtTo<std::wstring>(::strerror(ec)); #endif - trim(errorMsg); //Windows messages seem to end with a blank... + trim(errorMsg); //Windows messages seem to end with a blank... return errorMsg; } |