aboutsummaryrefslogtreecommitdiff
path: root/qc_app/upload
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-12 11:45:57 +0300
committerFrederick Muriuki Muriithi2024-04-12 11:45:57 +0300
commit30fa5725715bb1a83e49ad480ff038da7fad7860 (patch)
tree8b97aec7434e7518478ac8c7314ef2b5d81c1b92 /qc_app/upload
parentb906daff08dba1264188dd5e57642c6f255830dc (diff)
downloadgn-uploader-30fa5725715bb1a83e49ad480ff038da7fad7860.tar.gz
Provide more relevant error message.
Diffstat (limited to 'qc_app/upload')
-rw-r--r--qc_app/upload/rqtl2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qc_app/upload/rqtl2.py b/qc_app/upload/rqtl2.py
index 1f0a015..e79f1db 100644
--- a/qc_app/upload/rqtl2.py
+++ b/qc_app/upload/rqtl2.py
@@ -789,8 +789,8 @@ def create_probeset_dataset(species_id: int, population_id: int):#pylint: disabl
"datasetdatascale", "log2"))
except mdb.IntegrityError as _ierr:
app.logger.debug("Possible integrity error: %s", traceback.format_exc())
- flash(("A dataset with that name already exists. Try selecting "
- "from list of datasets instead."),
+ flash(("IntegrityError: The data you provided has some errors: "
+ f"{_ierr.args}"),
errorclasses)
return summary_page
except Exception as _exc:# pylint: disable=[broad-except]