diff options
Diffstat (limited to 'utils/libservice/test')
-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; } |