Skip to content

Expose error in status property when loading from local file system#10

Merged
mjwwit merged 1 commit intomjwwit:masterfrom
mrcarlberg:expose_error_in_status_property_when_loading_from_local_filesystem
Jun 1, 2021
Merged

Expose error in status property when loading from local file system#10
mjwwit merged 1 commit intomjwwit:masterfrom
mrcarlberg:expose_error_in_status_property_when_loading_from_local_filesystem

Conversation

@mrcarlberg
Copy link

When making a GET from the local file system an error will not be visible from the outside caller as the status property will be set to 0 which is the same as if the GET was successful.

@mjwwit
Copy link
Owner

mjwwit commented Jun 1, 2021

I'm not sure if it completely adheres to the XHR spec, but it's better than returning status code 0. I'll merge it and I'll let you know when I release it.

@mjwwit mjwwit merged commit baf1238 into mjwwit:master Jun 1, 2021
@mrcarlberg
Copy link
Author

Thanks!

@mjwwit
Copy link
Owner

mjwwit commented Jun 17, 2021

I've just released this in version 2.0.0.

@mrcarlberg
Copy link
Author

Thanks!

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.

2 participants