Skip to content

Fix FirebaseApp overwriting FirebaseError name field #1911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 26, 2019
Merged

Conversation

Feiyang1
Copy link
Member

@Feiyang1 Feiyang1 commented Jun 24, 2019

Fixes #1891,
but as a long term solution for avoid overwriting fields in FirebaseError, we should create a separate field to hold the template parameters. Since it's a potential breaking change, we will wait for the next major version to change it.

I'm not sure why we want the template parameters in the FirebaseError, so maybe we don't need it anyway?

Copy link
Contributor

@mmermerkaya mmermerkaya left a comment

Choose a reason for hiding this comment

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

I'm not sure why we want the template parameters in the FirebaseError, so maybe we don't need it anyway?

I'm actually using them for error handling in Installations, to do things like "delete FID if the server returned 404".

BTW, if you write "Fixes #1891" in this format in the description or the commit message, the issue will automatically get marked as fixed when you submit the PR.

@Feiyang1 Feiyang1 merged commit 1d96622 into master Jun 26, 2019
@Feiyang1 Feiyang1 deleted the fei-error-fix branch June 26, 2019 23:03
@firebase firebase locked and limited conversation to collaborators Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants