mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
make fetch errors more informative by including method and url
This commit is contained in:
parent
c875070ac5
commit
8616d79aad
@ -92,7 +92,7 @@ export default class HomeServerApi {
|
||||
//
|
||||
// One could check navigator.onLine to rule out the first
|
||||
// but the 2 later ones are indistinguishable from javascript.
|
||||
throw new NetworkError(err.message);
|
||||
throw new NetworkError(`${method} ${url}: ${err.message}`);
|
||||
}
|
||||
throw err;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user