diff --git a/web/src/components/upload/UploadFormCard.vue b/web/src/components/upload/UploadFormCard.vue index 60ee1336a..047741929 100644 --- a/web/src/components/upload/UploadFormCard.vue +++ b/web/src/components/upload/UploadFormCard.vue @@ -12,6 +12,7 @@ const step = shallowRef(1); const valid = shallowRef(false); // Error message, in case of an error. const error = shallowRef(); +const stderr = shallowRef(); // Selected file. const file = shallowRef(); @@ -247,8 +248,9 @@ const startPolling = (reportId: string): void => { clearForm(); } - if (report.status === "error" || report.status === "failed") { - handleError(status.error); + if (report.status === "failed" || report.status === "error") { + stderr.value = status.stderr.split("\n")[0].replace(/\[\d+m/g, ""); + handleError(`An error occurred while analyzing the dataset (${status.error})`); } } } catch (e: any) { @@ -294,7 +296,8 @@ watch( - {{ error }} + {{ error }}
+ {{ stderr }}
@@ -460,4 +463,5 @@ watch( width: 100%; } } +