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

Conversation

@egalitarian11
Copy link

Currently if a 404 is returned you get a json parsing error as seen in ionic-team/ionic-cli#1765 which is entirely unhelpful and pretty confusing. This change will show that a 404 was received and give relevant information to whoever gets the error.

Something should probably be done to generally handle any case where the API will return HTML instead of JSON, but this will help alleviate some confusion in the mean time.

Currently if a 404 is returned you get a json parsing error as seen in ionic-team/ionic-cli#1765 which is entirely unhelpful and pretty confusing. This change will show that a 404 was received and give relevant information to whoever gets the error.

Something should probably be done to generally handle any case where the API will return HTML instead of JSON, but this will help alleviate some confusion in the mean time.
@egalitarian11 egalitarian11 changed the title Patch 1 Handle 404 in upload.js Feb 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant