Tweak how error reports are passed to Sentry
This commit is contained in:
parent
28f562d0ec
commit
766b1f6c54
1 changed files with 1 additions and 4 deletions
|
@ -497,10 +497,7 @@ void sentryReportUserError(const std::string& aggregate, const std::string& deta
|
|||
sentry_value_set_by_key(info, "details", sentry_value_new_string(details.c_str()));
|
||||
|
||||
sentry_set_context("what", info);
|
||||
|
||||
sentry_value_set_by_key(sentryMessage, "value", sentry_value_new_string(aggregate.c_str()));
|
||||
sentry_value_t event = sentry_value_new_event();
|
||||
sentry_value_set_by_key(event, "message", sentryMessage);
|
||||
sentry_value_set_by_key(event, "message", sentry_value_new_string(aggregate.c_str()));
|
||||
|
||||
sentry_capture_event(event);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue