Sentry: fix naming clash.
This commit is contained in:
parent
a882b75c9b
commit
66f938be8e
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue