File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ def get_input_keys(self, state: dict) -> List[str]:
113
113
self ._validate_input_keys (input_keys )
114
114
return input_keys
115
115
except ValueError as e :
116
- raise ValueError (f"Error parsing input keys for { self .node_name } : { str ( e ) } " )
116
+ raise ValueError (f"Error parsing input keys for { self .node_name } " ) from e
117
117
118
118
def _validate_input_keys (self , input_keys ):
119
119
"""
@@ -233,7 +233,7 @@ def evaluate_expression(expression: str) -> List[str]:
233
233
result = evaluate_expression (expression )
234
234
235
235
if not result :
236
- raise ValueError ("No state keys matched the expression." )
236
+ raise ValueError (f "No state keys matched the expression. Expression was { expression } . State contains keys: { ', ' . join ( state . keys ()) } " )
237
237
238
238
# Remove redundant state keys from the result, without changing their order
239
239
final_result = []
You can’t perform that action at this time.
0 commit comments