Always use our own exception tree

This commit is contained in:
emeric
2018-07-26 10:26:49 +02:00
parent 853bcbe008
commit a31fb3c062
9 changed files with 27 additions and 20 deletions
+2 -2
View File
@@ -288,7 +288,7 @@ LmsApplication::handleAuthEvent()
catch (std::exception& e)
{
LMS_LOG(UI, ERROR) << "Error while handling auth event: " << e.what();
throw std::runtime_error("Internal error");
throw LmsException("Internal error"); // Do not put details here at it appears on the user rendered html
}
}
@@ -483,7 +483,7 @@ LmsApplication::notify(const Wt::WEvent& event)
catch (std::exception& e)
{
LMS_LOG(UI, ERROR) << "Caught exception: " << e.what();
throw std::runtime_error("Internal error");
throw LmsException("Internal error"); // Do not put details here at it appears on the user rendered html
}
}