Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/cloud_functions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.5+1

* Fix crash due to use of null error code when encountering generic errors.

## 0.0.5

* Set iOS deployment target to 8.0 (minimum supported by both Firebase SDKs and Flutter), fixes compilation errors.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void onComplete(@NonNull Task<HttpsCallableResult> task) {
exceptionMap);
} else {
Exception exception = task.getException();
result.error(null, exception.getMessage(), null);
result.error("genericError", exception.getMessage(), null);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
message:@"Firebase function failed with exception."
details:details];
} else {
flutterError = [FlutterError errorWithCode:nil
flutterError = [FlutterError errorWithCode:@"genericError"
message:error.localizedDescription
details:nil];
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cloud_functions/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: cloud_functions
description: Flutter plugin for Cloud Functions.
version: 0.0.5
version: 0.0.5+1
author: Flutter Team <[email protected]>
homepage: https://github.com/flutter/plugins/tree/master/packages/cloud_functions

Expand Down