diff --git a/mobile/lib/main.dart b/mobile/lib/main.dart index 4419ff58c2..07dc981393 100644 --- a/mobile/lib/main.dart +++ b/mobile/lib/main.dart @@ -63,11 +63,15 @@ Future initApp() async { FlutterError.onError = (details) { FlutterError.presentError(details); - log.severe(details.toString(), details, details.stack); + log.severe( + 'Catch all error: ${details.toString()} - ${details.exception} - ${details.library} - ${details.context} - ${details.stack}', + details, + details.stack, + ); }; PlatformDispatcher.instance.onError = (error, stack) { - log.severe(error.toString(), error, stack); + log.severe('Catch all error: ${error.toString()} - $error', error, stack); return true; }; }