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:
Bruno Windels 2019-02-16 00:25:38 +01:00
parent 17335db86c
commit 48a47cb639

View file

@ -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);