diff --git a/src/frontend/src/api/Project.js b/src/frontend/src/api/Project.js index 37287839a1..e0af1a0d56 100755 --- a/src/frontend/src/api/Project.js +++ b/src/frontend/src/api/Project.js @@ -331,10 +331,11 @@ export const DownloadSubmissionGeojson = (url, projectName) => { a.click(); dispatch(ProjectActions.SetDownloadSubmissionGeojsonLoading(false)); } catch (error) { + const errortxt = JSON.parse(await error.response.data.text()).detail; dispatch( CommonActions.SetSnackBar({ open: true, - message: 'Failed to download submission geojson.', + message: errortxt || 'Failed to download submission geojson.', variant: 'error', duration: 2000, }),