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:
parent
a2ba405d8e
commit
c564c667df
1 changed files with 0 additions and 3 deletions
|
@ -324,10 +324,7 @@ int main ( int argc, char **argv )
|
||||||
info = std::string("received from ") + t.getOrigin();
|
info = std::string("received from ") + t.getOrigin();
|
||||||
flightgear::fatalMessageBoxWithoutExit(
|
flightgear::fatalMessageBoxWithoutExit(
|
||||||
"Fatal exception", t.getFormattedMessage(), info);
|
"Fatal exception", t.getFormattedMessage(), info);
|
||||||
|
|
||||||
flightgear::sentryReportException(t.getFormattedMessage()), t.getOrigin();
|
|
||||||
} catch (const std::exception &e ) {
|
} catch (const std::exception &e ) {
|
||||||
flightgear::sentryReportException(e.what());
|
|
||||||
flightgear::fatalMessageBoxWithoutExit("Fatal exception", e.what());
|
flightgear::fatalMessageBoxWithoutExit("Fatal exception", e.what());
|
||||||
} catch (const std::string &s) {
|
} catch (const std::string &s) {
|
||||||
flightgear::fatalMessageBoxWithoutExit("Fatal exception", s);
|
flightgear::fatalMessageBoxWithoutExit("Fatal exception", s);
|
||||||
|
|
Loading…
Add table
Reference in a new issue