grafana / chaostoolkit-k6

https://chaostoolkit.org/drivers/k6
Apache License 2.0
13 stars 12 forks source link

Improve the message for when the k6 binary isn't found in the PATH #4

Open Lawouach opened 3 years ago

Lawouach commented 3 years ago

When a user of the extension hasn't installed the k6 product, the error message isn't very helpful because it simply states:

FileNotFoundError: [Errno 2] No such file or directory: 'k6': 'k6'

Maybe, this could be caught and at least turned into a more direct action for the user? :)

https://github.com/grafana/chaostoolkit-k6/blob/main/chaosk6/actions.py#L62

askalik commented 2 years ago

Is this still open and needed?

Would like to give this one a try

ppcano commented 2 years ago

@askalik, yes!

You might want to reference the k6 installation instructions.

Lawouach commented 2 years ago

I'm guessing, someone should offer a PR with a more appropriate message (which could indeed display the link from @ppcano).

askalik commented 2 years ago

@Lawouach could you let me know if the PR entered is taking the expected approach?