aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-12-09 07:01:32 +0300
committerFrederick Muriuki Muriithi2021-12-09 07:01:32 +0300
commitdd55b1376cbff6c9870b3173f8dc6207505a57c6 (patch)
treeebc1d2214645b8bbcdabedabb851e6a5cd4ddd2b /gn3
parenteff7e0b649c88d6886c3cfce820327872afb7c3b (diff)
downloadgenenetwork3-dd55b1376cbff6c9870b3173f8dc6207505a57c6.tar.gz
Provide clearer error message
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi * To help with debugging error conditions, provide the original name to help with figuring out why the error was raised
Diffstat (limited to 'gn3')
-rw-r--r--gn3/db/traits.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/traits.py b/gn3/db/traits.py
index 4098b08..7994aef 100644
--- a/gn3/db/traits.py
+++ b/gn3/db/traits.py
@@ -550,7 +550,7 @@ def build_trait_name(trait_fullname):
return "ProbeSet"
name_parts = trait_fullname.split("::")
- assert len(name_parts) >= 2, "Name format error"
+ assert len(name_parts) >= 2, f"Name format error: '{trait_fullname}'"
dataset_name = name_parts[0]
dataset_type = dataset_type(dataset_name)
return {