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

Prefix fatal error message with 'buildkite-agent:' #3135

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

jordandcarter
Copy link
Contributor

Description

When the agent exits and prints an error message prefix the message with buildkite-agent: to provide clarity as to where the error came from. Our buildkite-agent cli is often used in scripts and when it exits with an error it isn't always obvious to the user what printed the error. It is common practice for cli tools to prefix error messages with the tool name.

Context

https://linear.app/buildkite/issue/PS-217/prefix-fatal-error-messages-with-buildkite-agent

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go fmt ./...)

@jordandcarter jordandcarter requested a review from a team December 17, 2024 22:33
Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

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

LGTM nice 👍

@jordandcarter jordandcarter merged commit 93f6e69 into main Dec 18, 2024
1 check passed
@jordandcarter jordandcarter deleted the unambiguous-buildkite-agent-fatal-error-message branch December 18, 2024 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants