forked from mystiq/hydrogen-web
make fetch errors more informative by including method and url
This commit is contained in:
parent
c875070ac5
commit
8616d79aad
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ export default class HomeServerApi {
|
||||||
//
|
//
|
||||||
// One could check navigator.onLine to rule out the first
|
// One could check navigator.onLine to rule out the first
|
||||||
// but the 2 later ones are indistinguishable from javascript.
|
// but the 2 later ones are indistinguishable from javascript.
|
||||||
throw new NetworkError(err.message);
|
throw new NetworkError(`${method} ${url}: ${err.message}`);
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue