aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/lv2_build_index.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lv2_build_index.py b/scripts/lv2_build_index.py
index bc91911..8238b49 100755
--- a/scripts/lv2_build_index.py
+++ b/scripts/lv2_build_index.py
@@ -41,7 +41,11 @@ def _load_ttl(data_paths, exclude=None):
model = rdflib.ConjunctiveGraph()
for path in data_paths:
if exclude is None or path not in exclude:
- model.parse(path, format="n3")
+ try:
+ model.parse(path, format="n3")
+ except SyntaxError as e:
+ sys.stderr.write(f"error: Failed to parse {path}\n")
+ raise e
return model