From 837fee3ce1ccdf31d28e264bc54fda388e4ea185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 12 Dec 2018 00:07:27 +0200 Subject: [PATCH] Clarify the output of the exception-locale test --- test/exception-locale.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/exception-locale.cpp b/test/exception-locale.cpp index 62e1ac1..d9a0bea 100644 --- a/test/exception-locale.cpp +++ b/test/exception-locale.cpp @@ -23,8 +23,9 @@ int main(int argc, char *argv[]) { try { std::locale loc("test"); } catch (std::runtime_error& e) { - std::cerr << "Caught " << e.what() << std::endl; + std::cerr << "Caught \"" << e.what() << "\"" << std::endl; std::cerr << "Type " << typeid(e).name() << std::endl; + std::cerr << "Test succeeded." << std::endl; } catch (...) { std::cerr << "catch all" << std::endl; }