Try to fix Sentry issue

I'm really not sure what is going on over here.

Fixes APP-197
This commit is contained in:
Vishesh Handa
2021-08-10 17:58:52 +02:00
parent da7d6e9bbf
commit 65de6a83b5

View File

@ -84,7 +84,8 @@ bool _initReportCrashes() {
return !JournalApp.isInDebugMode && AppSettings.instance.collectCrashReports;
}
Future<void> reportError(dynamic error, StackTrace stackTrace) async {
Future<void> reportError(Object error, StackTrace stackTrace) async {
assert(error is Exception || error is Error);
Log.e("Uncaught Exception", ex: error, stacktrace: stackTrace);
if (reportCrashes) {