From 01c1146276f7319843c357480c4374fe555f07c5 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 15 Jul 2015 22:08:33 +0300 Subject: utils: code style --- utils/libservice/test/windows_error.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'utils/libservice/test/windows_error.cpp') 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 #include +#include 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; } -- cgit v1.2.3