Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@timtraversy
Copy link
Contributor

@timtraversy timtraversy commented Dec 11, 2018

If the app reaches this line it crashes because FlutterError asserts a non-null code. On the dart side this is referred to as a. 'generic error', so that is what I'm naming the code. The localized description should describe what exactly went wrong.

If the app reaches this line it crashes because FlutterError asserts a non-null code. I'm reaching this line because I improperly formatted my function parameters, so I am naming the code "formattingError". The localized description should describe what exactly went wrong.
@timtraversy
Copy link
Contributor Author

This causes a crash.

@cyanglaz cyanglaz changed the title Adding error code because 'Code cannot be nil' [cloud_functions]Adding error code because 'Code cannot be nil' Feb 22, 2019
@cyanglaz cyanglaz added the submit queue The Flutter team is in the process of landing this PR. label Feb 22, 2019
@collinjackson collinjackson self-requested a review April 8, 2019 05:24
Copy link
Contributor

@collinjackson collinjackson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add Android implementation in CloudFunctionsPlugin.java as well.

Please update CHANGELOG and pubspec.yaml for release.

I would love to have an integration test for this case. Do you have any suggestions for how to trigger this error case to occur? See https://github.com/flutter/plugins/blob/master/packages/cloud_functions/example/test/cloud_functions.dart

@collinjackson collinjackson added bugfix and removed submit queue The Flutter team is in the process of landing this PR. labels Apr 8, 2019
@collinjackson
Copy link
Contributor

Looks like this was fixed on iOS in #1210 so I'm going to close this one

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants