mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
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
@ -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 New Issue
Block a user