Skip to content

Commit

Permalink
fix(crashlytics): update exception reason to ensure it does not pro…
Browse files Browse the repository at this point in the history
…duce incorrect value in Firebase console (#12053)
  • Loading branch information
russellwheatley committed Dec 27, 2023
1 parent 9790303 commit 1cf38b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -6,7 +6,7 @@
library firebase_crashlytics;

import 'package:flutter/foundation.dart'
show kDebugMode, FlutterErrorDetails, FlutterError;
show DiagnosticLevel, FlutterError, FlutterErrorDetails, kDebugMode;

import 'package:firebase_crashlytics_platform_interface/firebase_crashlytics_platform_interface.dart';
import 'package:firebase_core/firebase_core.dart';
Expand Down
Expand Up @@ -145,7 +145,9 @@ class FirebaseCrashlytics extends FirebasePluginPlatform {
return recordError(
flutterErrorDetails.exceptionAsString(),
flutterErrorDetails.stack,
reason: flutterErrorDetails.context,
reason: flutterErrorDetails.context
?.toStringDeep(minLevel: DiagnosticLevel.info)
.trim(),
information: information,
printDetails: false,
fatal: fatal,
Expand Down

0 comments on commit 1cf38b8

Please sign in to comment.