Skip to content

Commit 06e5d29

Browse files
committed
unsupported spec type
1 parent 83d158a commit 06e5d29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nemoguardrails/colang/v2_x/lang/expansion.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ def _expand_await_element(
475475
)
476476
)
477477
else:
478-
raise ColangSyntaxError(f"Unsupported spec type '{type(element.spec)}'")
478+
raise ColangSyntaxError(
479+
f"Unsupported spec type '{type(element.spec)}', element '{element.spec.name}' on line {element._source.line}"
480+
)
479481
else:
480482
# Element group
481483
normalized_group = normalize_element_groups(element.spec)

0 commit comments

Comments
 (0)