Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 1a7fb33

Browse files
committed
catch updatePublications error
1 parent 905637a commit 1a7fb33

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/actions/bundleManageResources.actions.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,13 @@ export function addManifestResources(
291291
dispatch(failure(_bundleId, error));
292292
}
293293
}
294-
await updatePublications(() => gottenStateForPublications, _bundleId);
294+
try {
295+
await updatePublications(() => gottenStateForPublications, _bundleId);
296+
} catch (error) {
297+
const { status, statusText, url, message } = error;
298+
const bodyText = await error.text();
299+
log.error({ status, statusText, url, message, bodyText });
300+
}
295301
await bundleService.waitStopCreateMode(_bundleId);
296302
dispatch(done(_bundleId));
297303
dispatch(saveMetadatFileToTempBundleFolder(_bundleId));

0 commit comments

Comments
 (0)