Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error message when a command is not found #1210

Merged
merged 2 commits into from
Jul 20, 2021

Conversation

fhammerl
Copy link
Contributor

@fhammerl fhammerl commented Jul 20, 2021

Closes #960

For example, Error: File not found: 'docker' may be hard to make sense of, so I replaced the exception message (that gets propagated to the UI log) with the Linux default for when a command is not found.

Additionally, I included some extra info in the message the runner logs to help people who hit this problem on a self-hosted runner.

I kept the exception type FileNotFoundException, because it describes the problem precisely.

@fhammerl fhammerl requested a review from thboop July 20, 2021 12:24
@fhammerl fhammerl requested a review from a team as a code owner July 20, 2021 12:24
@fhammerl fhammerl self-assigned this Jul 20, 2021
Copy link
Collaborator

@thboop thboop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fhammerl fhammerl merged commit 592ce1b into actions:main Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better error message when docker is not installed.
2 participants