File tree 2 files changed +6
-2
lines changed
nemoguardrails/colang/v2_x/lang
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,5 @@ eval_outputs
30
30
local_cache
31
31
# Ignore example configs created in user guides
32
32
docs /user_guides /llm /vertexai /config
33
+ # vscode local history extension
34
+ .history
Original file line number Diff line number Diff line change @@ -475,7 +475,9 @@ def _expand_await_element(
475
475
)
476
476
)
477
477
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
+ )
479
481
else :
480
482
# Element group
481
483
normalized_group = normalize_element_groups (element .spec )
@@ -611,7 +613,7 @@ def _expand_activate_element(
611
613
else :
612
614
# It's an UMIM event
613
615
raise ColangSyntaxError (
614
- f"Only flows can be activated but not '{ element .spec .spec_type } '!"
616
+ f"Only flows can be activated but not '{ element .spec .spec_type } ', element ' { element . spec . name } ' on line { element . _source . line } !"
615
617
)
616
618
elif isinstance (element .spec , dict ):
617
619
# Multiple match elements
You can’t perform that action at this time.
0 commit comments