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:
Pierre de La Morinerie 2022-02-15 12:34:32 +01:00 committed by GitHub
commit 886efd7f26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());