Merge pull request #6963 from betagouv/fix-operation-queue-error-handling
Javascript : correction de la gestion d'erreur dans OperationQueue.js
This commit is contained in:
commit
886efd7f26
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ async function handleError({ response, message }, reject) {
|
|||
try {
|
||||
const {
|
||||
errors: [message]
|
||||
} = await response.json();
|
||||
} = await response.clone().json();
|
||||
reject(message);
|
||||
} catch {
|
||||
reject(await response.text());
|
||||
|
|
Loading…
Reference in a new issue