diff --git a/src/state/actions/manifest.js b/src/state/actions/manifest.js index beda211f010c8bbde7daeb50c4417d7e5e1cb984..a26e8998113559d6fd69291e4bd264c848c437b8 100644 --- a/src/state/actions/manifest.js +++ b/src/state/actions/manifest.js @@ -58,7 +58,13 @@ export function fetchManifest(manifestId, properties) { return fetch(manifestId) .then(response => response.json()) .then(json => dispatch(receiveManifest(manifestId, json))) - .catch(error => dispatch(receiveManifestFailure(manifestId, error))); + .catch((error) => { + if (typeof error === 'object') { // Returned by JSON parse failure + dispatch(receiveManifestFailure(manifestId, String(error))); + } else { + dispatch(receiveManifestFailure(manifestId, error)); + } + }); }); }