Clarify the output of the exception-locale test

This commit is contained in:
Martin Storsjö committed 2018-12-12 00:07:50 +02:00
1 parent 1228a03be4
commit 837fee3ce1
1 file changed
+2 -1
+2 -1
View File
@@ -23,8 +23,9 @@ int main(int argc, char *argv[]) {
try { try {
std::locale loc("test"); std::locale loc("test");
} catch (std::runtime_error& e) { } 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 << "Type " << typeid(e).name() << std::endl;
std::cerr << "Test succeeded." << std::endl;
} catch (...) { } catch (...) {
std::cerr << "catch all" << std::endl; std::cerr << "catch all" << std::endl;
} }