Modification des pages d'authentification
This commit is contained in:
+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