Skip to content
Snippets Groups Projects
Commit ac95af06 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Extend message on failed assertion: 'BUG:', 'Please report ...'

parent 79a3dec6
No related branches found
No related tags found
2 merge requests!1525Updates from r20.0,!1518Failed assertion throws runtime_error; message box moved to GUI main loop try..catch wrapper (#496)
Pipeline #93801 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment