diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-15 22:08:33 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-07-15 22:08:33 +0300 |
commit | 01c1146276f7319843c357480c4374fe555f07c5 (patch) | |
tree | ca04e44b03b126de4ad3071e3e70df3982f9f174 /utils/libservice/test | |
parent | README updates (diff) | |
download | windows7-drivers-01c1146276f7319843c357480c4374fe555f07c5.tar.gz windows7-drivers-01c1146276f7319843c357480c4374fe555f07c5.zip |
utils: code style
Diffstat (limited to '')
-rw-r--r-- | utils/libservice/test/windows_error.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/libservice/test/windows_error.cpp b/utils/libservice/test/windows_error.cpp index 1f0b1ee..464fd90 100644 --- a/utils/libservice/test/windows_error.cpp +++ b/utils/libservice/test/windows_error.cpp @@ -12,17 +12,21 @@ #include <exception> #include <iostream> +#include <system_error> int main() { try { - throw std::system_error(ERROR_FILE_NOT_FOUND, libservice::WinErrorCategory::get(), LIBSERVICE_ERROR_PREFIX); + throw std::system_error( + ERROR_FILE_NOT_FOUND, + libservice::WindowsErrorCategory::get(), + LIBSERVICE_ERROR_PREFIX); } catch (const std::exception& e) { std::cerr << e.what() << "\n"; - return -1; + return 1; } return 0; } |