From 669a246c175a002e368404fc0037379900bcca04 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 1 May 2017 16:21:37 +0300 Subject: service: refactoring * No more compiler-specific macros. --- um/service/test/windows_error.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'um/service/test') diff --git a/um/service/test/windows_error.cpp b/um/service/test/windows_error.cpp index 5785e99..1334620 100644 --- a/um/service/test/windows_error.cpp +++ b/um/service/test/windows_error.cpp @@ -9,16 +9,14 @@ #include #include -#include int main() { try { - throw std::system_error( + throw service::windows_error::make( ERROR_FILE_NOT_FOUND, - service::WindowsErrorCategory::get(), - LIBSERVICE_ERROR_PREFIX); + __FILE__, __LINE__, __FUNCTION__); } catch (const std::exception& e) { -- cgit v1.2.3