Skip to content

Commit bd82372

Browse files
committed
Add a catch for std::exception to display message
1 parent 45964a4 commit bd82372

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/runtime_tests.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
EXPRESSION; \
1515
FAIL("no exception thrown"); \
1616
} catch (const EXCEPTION&) { \
17+
} catch (const std::exception& e) { \
18+
FAIL(e.what()); \
1719
} catch (...) { \
1820
FAIL("unexpected exception thrown"); \
1921
} \

0 commit comments

Comments
 (0)