Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Report error when datasources.json does not parse #59

Open
chrisknoll opened this issue Jun 6, 2016 · 0 comments
Open

Report error when datasources.json does not parse #59

chrisknoll opened this issue Jun 6, 2016 · 0 comments

Comments

@chrisknoll
Copy link
Contributor

When there is a malformed JSON returned from the AJAX request to get the datasources, if the file is loaded successfully you get a 200 status, but the done() promise doesn't fire because the response could not be parsed as JSON. .fail() will trigger, so we should add the fail() handler to this call and report an error if there is a failure. Otherwise, the app seems to hang on 'loading' without reporting any error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant