diff options
author | Frederick Muriuki Muriithi | 2021-12-09 07:01:32 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2021-12-09 07:01:32 +0300 |
commit | dd55b1376cbff6c9870b3173f8dc6207505a57c6 (patch) | |
tree | ebc1d2214645b8bbcdabedabb851e6a5cd4ddd2b /gn3 | |
parent | eff7e0b649c88d6886c3cfce820327872afb7c3b (diff) | |
download | genenetwork3-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.py | 2 |
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 { |