Modification des pages d'authentification
This commit is contained in:
1 parent
dc28b12c27
commit
9f6363ec20
20 files changed
+2494
-172
No files matched your search
+2
-1
@@ -19,7 +19,8 @@ async function handle(res) {
|
||||
if (!res.ok) {
|
||||
const msg = (body && body.error) || res.statusText || 'Request failed';
|
||||
const err = new Error(msg);
|
||||
err.status = res.status;
|
||||
err.status = res.status;
|
||||
err.code = body && body.code;
|
||||
err.details = body && body.details;
|
||||
throw err;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user