Skip to content

Timeout errors should reject promises, provide error type info#41

Merged
jrburke merged 1 commit into
masterfrom
timeout-errors
Nov 22, 2017
Merged

Timeout errors should reject promises, provide error type info#41
jrburke merged 1 commit into
masterfrom
timeout-errors

Conversation

@jrburke

@jrburke jrburke commented Nov 22, 2017

Copy link
Copy Markdown
Member

Fixes #39 and #40:

Timeout errors were calling requirejs.onError directly, instead of rejecting the promise for the modules that timed out. This lead to inconsistent and incorrect error reporting.

Adds requireType to the Error objects for certain error cases to indicate the type of error. The type strings are taken from requirejs. alameda does not have the same error cases as requirejs, so only some of the error types from requirejs apply to alameda.

@jrburke jrburke added this to the 1.2.1 milestone Nov 22, 2017
@jrburke jrburke merged commit a0827d0 into master Nov 22, 2017
@jrburke jrburke deleted the timeout-errors branch November 22, 2017 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant