Skip to content

Commit

Permalink
[ENH] specify contact info when upload errors occur
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Levitas committed Feb 14, 2024
1 parent 8684b56 commit ca9448a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions handler/preprocess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ else

if [ ! -s $root/list ]; then
echo "Could not find any MRI (or PET) DICOM files in upload. Uploaded files likely do not conform to DICOM format, aborting"
echo "Please contact the ezBIDS team ([email protected]) or https://github.com/brainlife/ezbids/issues for assistance
exit 1
fi
Expand Down
12 changes: 9 additions & 3 deletions ui/src/Upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@
</h3>
<small>Please do not close or refresh this page until all files are uploaded.</small>
<div v-if="failed.length > 0">
<el-alert type="error">Permanently failed to upload some files</el-alert>
<el-alert type="error"
>Permanently failed to upload some files, please email [email protected] for assistance</el-alert
>
<pre v-for="idx in failed" :key="idx" type="info" style="font-size: 80%">{{ files[idx].path }}</pre>
</div>

Expand Down Expand Up @@ -146,7 +148,9 @@
</div>

<div v-if="session.status == 'failed'">
<el-alert type="error">ezBIDS failed.. Please check the Debug logs and contact ezBIDS team.</el-alert>
<el-alert type="error"
>ezBIDS failed.. Please check the Debug logs and contact ezBIDS team ([email protected]).</el-alert
>
<br />
<pre class="status">{{ session.status_msg }}</pre>
</div>
Expand Down Expand Up @@ -185,7 +189,9 @@
</div>
<div v-if="!ezbids.notLoaded && !ezbids.objects.length">
<el-alert type="error"
>We couldn't find any objects. Please upload data that contains at least 1 object.</el-alert
>We couldn't find any objects. Please upload data that contains at least 1 object. Contact the
ezBIDS team ([email protected]) or https://github.com/brainlife/ezbids/issues for
support</el-alert
>
</div>
</div>
Expand Down

0 comments on commit ca9448a

Please sign in to comment.