Skip to content

Fix: reject promise on non-404 errors in jsonMessageLoader (fixes #255)#317

Open
haniyakonain wants to merge 1 commit intowikimedia:masterfrom
haniyakonain:patch-1
Open

Fix: reject promise on non-404 errors in jsonMessageLoader (fixes #255)#317
haniyakonain wants to merge 1 commit intowikimedia:masterfrom
haniyakonain:patch-1

Conversation

@haniyakonain
Copy link
Copy Markdown

Fixes #255
The jsonMessageLoader function was resolving the promise on ALL errors, including invalid JSON. Now it only resolves on 404 (for fallback handling) and rejects on all other errors.

…imedia#255)

Fixes wikimedia#255 
The `jsonMessageLoader` function was resolving the promise on ALL errors,
including invalid JSON. Now it only resolves on 404 (for fallback handling)
and rejects on all other errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

the load function does not fail the promise correctly

1 participant