forked from mystiq/hydrogen-web
expose native error for now
as server not reachable seems to be reported as a TypeError with message "fetch failed" or something in chrome, let's see if we can find something in common between browsers to wrap it into something more sensible
This commit is contained in:
parent
17335db86c
commit
48a47cb639
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ export default class HomeServerApi {
|
|||
}, err => {
|
||||
switch (err.name) {
|
||||
case "AbortError": throw new RequestAbortError();
|
||||
default: throw new Error(`Unrecognized DOMException: ${err.name}`);
|
||||
default: throw err; //new Error(`Unrecognized DOMException: ${err.name}`);
|
||||
}
|
||||
});
|
||||
return new RequestWrapper(promise, controller);
|
||||
|
|
Loading…
Reference in a new issue