From 1cbd0a3b824d1821549b4c7ede688f500de25443 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 20 Sep 2020 00:09:34 +0300 Subject: pdb::error: include function name in error message --- test/unit_tests/error.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/unit_tests/error.cpp b/test/unit_tests/error.cpp index f18a2e7..a1ae977 100644 --- a/test/unit_tests/error.cpp +++ b/test/unit_tests/error.cpp @@ -14,8 +14,10 @@ BOOST_AUTO_TEST_SUITE(error_tests) BOOST_AUTO_TEST_CASE(file_not_found) { - const std::string actual{pdb::error::windows(ERROR_FILE_NOT_FOUND).what()}; - BOOST_TEST(actual == "The system cannot find the file specified."); + const std::string actual{pdb::error::windows(ERROR_FILE_NOT_FOUND, "CreateFileW").what()}; + BOOST_TEST(actual == + "Function CreateFileW failed with error code 2: The system cannot find the file " + "specified."); } BOOST_AUTO_TEST_SUITE_END() -- cgit v1.2.3