diff --git a/packages/flutterfire_cli/lib/src/commands/upload_symbols.dart b/packages/flutterfire_cli/lib/src/commands/upload_symbols.dart index 13956a80..c571e862 100644 --- a/packages/flutterfire_cli/lib/src/commands/upload_symbols.dart +++ b/packages/flutterfire_cli/lib/src/commands/upload_symbols.dart @@ -309,7 +309,7 @@ class UploadCrashlyticsSymbols extends FlutterFireCommand { appId = configurationMap[kAppId] as String?; projectId = configurationMap[kProjectId] as String?; } catch (e) { - throw FirebaseJsonException(); + throw FirebaseJsonException(underlyingException: e.toString()); } if (projectId == null || appId == null) { diff --git a/packages/flutterfire_cli/lib/src/common/strings.dart b/packages/flutterfire_cli/lib/src/common/strings.dart index 6309d4a7..2ad2a988 100644 --- a/packages/flutterfire_cli/lib/src/common/strings.dart +++ b/packages/flutterfire_cli/lib/src/common/strings.dart @@ -131,9 +131,12 @@ class XcodeProjectException implements FlutterFireException { /// An exception that is thrown when you do not have a firebase.json file at the root of your project or it does not have values required class FirebaseJsonException implements FlutterFireException { + FirebaseJsonException({this.underlyingException}) : super(); + + final String? underlyingException; @override String toString() { - return 'FirebaseJsonException: Please run "flutterfire configure" to update the `firebase.json` at the root of your Flutter project with correct values.'; + return 'FirebaseJsonException: Please run "flutterfire configure" to update the `firebase.json` at the root of your Flutter project with correct values. ${underlyingException != null ? '' : underlyingException}'; } }