Skip to content

Commit

Permalink
fix: non-existent field access on error message (#577)
Browse files Browse the repository at this point in the history
Fixes #576

Now it correctly results in the error message:

```
There was an error interpreting Starlark code 
Evaluation error: fail: Unsupported launcher 'foo', need one of 'lighthouse,lodestar,nimbus,prysm,teku,grandine'
        at [github.com/kurtosis-tech/ethereum-package/main.star:104:55]: run
        at [github.com/kurtosis-tech/ethereum-package/src/participant_network.star:166:34]: launch_participant_network
        at [github.com/kurtosis-tech/ethereum-package/src/cl/cl_launcher.star:106:17]: launch
        at [0:0]: fail

Error encountered running Starlark code.
```
  • Loading branch information
MegaRedHand committed Apr 26, 2024
1 parent 87f383f commit 8515d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cl/cl_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def launch(
if cl_type not in cl_launchers:
fail(
"Unsupported launcher '{0}', need one of '{1}'".format(
cl_type, ",".join([cl.name for cl in cl_launchers.keys()])
cl_type, ",".join(cl_launchers.keys())
)
)

Expand Down

0 comments on commit 8515d27

Please sign in to comment.