1
0
Fork 0

Sentry: fix naming clash.

This commit is contained in:
James Turner 2020-08-26 15:29:55 +01:00
parent a882b75c9b
commit 66f938be8e

View file

@ -202,16 +202,16 @@ void sentryReportFatalError(const std::string& msg, const std::string& more)
if (!static_sentryEnabled)
return;
sentry_value_t msg = sentry_value_new_object();
sentry_value_set_by_key(msg, "type", sentry_value_new_string("Fatal Error"));
sentry_value_set_by_key(msg, "formatted", sentry_value_new_string(msg.c_str()));
sentry_value_t sentryMsg = sentry_value_new_object();
sentry_value_set_by_key(sentryMsg, "type", sentry_value_new_string("Fatal Error"));
sentry_value_set_by_key(sentryMsg, "formatted", sentry_value_new_string(msg.c_str()));
if (!more.empty()) {
sentry_value_set_by_key(msg, "more", sentry_value_new_string(more.c_str()));
sentry_value_set_by_key(sentryMsg, "more", sentry_value_new_string(more.c_str()));
}
sentry_value_t event = sentry_value_new_event();
sentry_value_set_by_key(event, "message", msg);
sentry_value_set_by_key(event, "message", sentryMsg);
sentry_event_value_add_stacktrace(event, nullptr, 0);
sentry_capture_event(event);