Skip to content
Snippets Groups Projects

Failed assertion throws runtime_error; message box moved to GUI main loop try..catch wrapper (#496)

Merged Wuttke, Joachim requested to merge i496j into r20.0
All threads resolved!
+ 6
2
@@ -48,8 +48,12 @@
std::cerr << "Throwing runtime_error: Assertion " #condition " failed in " __FILE__ \
", line " \
<< __LINE__ << std::endl; \
throw std::runtime_error("Assertion " #condition " failed in " __FILE__ ", line " \
+ std::to_string(__LINE__)); \
throw std::runtime_error("BUG: Assertion " #condition " failed in " __FILE__ ", line " \
+ std::to_string(__LINE__) \
+ ".\n" \
"Please report this to the maintainers:\n" \
"- https://jugit.fz-juelich.de/mlz/bornagain/-/issues/new or\n" \
"- contact@bornagainproject.org."); \
}
#endif // BA_DEBUG
Loading