Skip to content
Snippets Groups Projects
Commit b99432c6 authored by Anthony Royer's avatar Anthony Royer
Browse files

Don't throw a std::string

parent 730de7ce
No related branches found
No related tags found
No related merge requests found
...@@ -530,10 +530,10 @@ void Msg::Error(const char *fmt, ...) ...@@ -530,10 +530,10 @@ void Msg::Error(const char *fmt, ...)
#if defined(HAVE_FLTK) #if defined(HAVE_FLTK)
if(FlGui::available()) return; // don't throw if GUI is running if(FlGui::available()) return; // don't throw if GUI is running
#endif #endif
throw _lastError; throw std::runtime_error(_lastError);
} }
else if(CTX::instance()->abortOnError == 3) { else if(CTX::instance()->abortOnError == 3) {
throw _lastError; throw std::runtime_error(_lastError);
} }
else if(CTX::instance()->abortOnError == 4) { else if(CTX::instance()->abortOnError == 4) {
Exit(1); Exit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment