1
0
Fork 0

Sentry: avoid duplicate events for exceptions

Since fatalMessageBox already logs an event when it’s invoked, don’t
report the event a second time.
This commit is contained in:
Automatic Release Builder 2020-09-23 22:12:09 +01:00 committed by James Turner
parent a2ba405d8e
commit c564c667df

View file

@ -324,10 +324,7 @@ int main ( int argc, char **argv )
info = std::string("received from ") + t.getOrigin();
flightgear::fatalMessageBoxWithoutExit(
"Fatal exception", t.getFormattedMessage(), info);
flightgear::sentryReportException(t.getFormattedMessage()), t.getOrigin();
} catch (const std::exception &e ) {
flightgear::sentryReportException(e.what());
flightgear::fatalMessageBoxWithoutExit("Fatal exception", e.what());
} catch (const std::string &s) {
flightgear::fatalMessageBoxWithoutExit("Fatal exception", s);