diff options
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; } |