2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 04:35:26 +00:00

Ensure that flutter errors are also reported to sentry!

This commit is contained in:
Oliver
2021-06-29 22:26:20 +10:00
parent d0aa6a61ba
commit c84941695d
3 changed files with 22 additions and 26 deletions

View File

@ -86,7 +86,7 @@ bool isInDebugMode() {
Future<void> sentryReportError(dynamic error, dynamic stackTrace) async {
print('Intercepted error: $error');
print('----- Sentry Intercepted error: $error -----');
print(stackTrace);
// Errors thrown in development mode are unlikely to be interesting. You can
@ -94,7 +94,7 @@ Future<void> sentryReportError(dynamic error, dynamic stackTrace) async {
// the report.
if (isInDebugMode()) {
print('In dev mode. Not sending report to Sentry.io.');
print('----- In dev mode. Not sending report to Sentry.io -----');
return;
}