1
0
Fork 0

Tweak how error reports are passed to Sentry

This commit is contained in:
James Turner 2021-04-08 11:34:40 +01:00
parent 28f562d0ec
commit 766b1f6c54

View file

@ -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);
}