Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <pingsutw@apache.org>
  • Loading branch information
pingsutw committed Aug 30, 2024
1 parent 8e17ec2 commit 404c189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flytekit/core/promise.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ def create_and_link_node_from_remote(
nodes.extend(n)
used_inputs.add(k)
except Exception as exc:
exc.args = (f"Failed to Bind variable {k} for function {entity.name}:\n {exc.args[0]}",)
exc.args = (f"Failed to Bind variable '{k}' for function '{entity.name}':\n {exc.args[0]}",)
raise

Check warning on line 1093 in flytekit/core/promise.py

View check run for this annotation

Codecov / codecov/patch

flytekit/core/promise.py#L1091-L1093

Added lines #L1091 - L1093 were not covered by tests

extra_inputs = used_inputs ^ set(kwargs.keys())
Expand Down Expand Up @@ -1197,7 +1197,7 @@ def create_and_link_node(
nodes.extend(n)
used_inputs.add(k)
except Exception as exc:
exc.args = (f"Failed to Bind variable {k} for function {entity.name}:\n {exc.args[0]}",)
exc.args = (f"Failed to Bind variable '{k}' for function '{entity.name}':\n {exc.args[0]}",)
raise

Check warning on line 1201 in flytekit/core/promise.py

View check run for this annotation

Codecov / codecov/patch

flytekit/core/promise.py#L1199-L1201

Added lines #L1199 - L1201 were not covered by tests

extra_inputs = used_inputs ^ set(kwargs.keys())
Expand Down

0 comments on commit 404c189

Please sign in to comment.