From 30fa5725715bb1a83e49ad480ff038da7fad7860 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 12 Apr 2024 11:45:57 +0300 Subject: Provide more relevant error message. --- qc_app/upload/rqtl2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qc_app') 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] -- cgit v1.2.3