From 38cf59a68c1dc04d15fd4e06a030eecd8f557cf4 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Tue, 5 Oct 2021 18:01:12 +0300 Subject: [PATCH] show where code error happened, on error --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e924dfce3..b20036fd2 100644 --- a/setup.py +++ b/setup.py @@ -209,7 +209,7 @@ def get_spec(file_name: Path, preset: Dict[str, str], config: Dict[str, str]) -> # NOTE: trim whitespace from spec ssz_objects[current_name] = "\n".join(line.rstrip() for line in source.splitlines()) else: - raise Exception("unrecognized python code element") + raise Exception("unrecognized python code element: " + source) elif isinstance(child, Table): for row in child.children: cells = row.children