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

Toolkit: Improve error messages when tasks fail #36381

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

joshhunt
Copy link
Contributor

@joshhunt joshhunt commented Jul 2, 2021

What this PR does / why we need it:

If a command executed contains stdout, prefer to output that verbatim, rather than the Error object with that as a value. That way we can get pretty error messages from things like Typescript 😄

Before:

WindowsTerminal_3DewxePo06

After:

WindowsTerminal_AOBU9X7p93

Isn't that nice :)

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@joshhunt joshhunt requested review from a team, jackw and mckn and removed request for a team July 2, 2021 10:48
Copy link
Contributor

@mckn mckn left a comment

Choose a reason for hiding this comment

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

LGTM!

@joshhunt joshhunt merged commit 227c11d into main Jul 6, 2021
@joshhunt joshhunt deleted the joshhunt/grafana-toolkit-error-messages branch July 6, 2021 09:07
@zserge zserge added this to the 8.1.0-beta1 milestone Jul 22, 2021
bryanuribe pushed a commit to open-o11y/grafana that referenced this pull request Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants