Skip to content

Commit 837fee3

Browse files
committed
Clarify the output of the exception-locale test
1 parent 1228a03 commit 837fee3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/exception-locale.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ int main(int argc, char *argv[]) {
2323
try {
2424
std::locale loc("test");
2525
} catch (std::runtime_error& e) {
26-
std::cerr << "Caught " << e.what() << std::endl;
26+
std::cerr << "Caught \"" << e.what() << "\"" << std::endl;
2727
std::cerr << "Type " << typeid(e).name() << std::endl;
28+
std::cerr << "Test succeeded." << std::endl;
2829
} catch (...) {
2930
std::cerr << "catch all" << std::endl;
3031
}

0 commit comments

Comments
 (0)