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

Logs errors when GitHub script fails #222

Open
ErikSchierboom opened this issue May 11, 2022 · 2 comments
Open

Logs errors when GitHub script fails #222

ErikSchierboom opened this issue May 11, 2022 · 2 comments

Comments

@ErikSchierboom
Copy link
Member

If an error occurs when calling a GitHub script during a workflow run, the exception is displayed: https://github.com/exercism/org-wide-files/runs/6383394202?check_suite_focus=true

However, this is fairly unhelpful, as the actual error is hidden inside the response's data.errors array:

response: {
  ...,
 data: {
      message: 'Validation Failed',
      errors: [Array],
      documentation_url: 'https://docs.github.com/rest/reference/pulls#create-a-pull-request'
    }
  },

It would be super helpful if we could show the actual error messages, likely output as errors via https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message

@SaschaMann
Copy link
Contributor

I wouldn't mind it if we displayed both if you find that useful but I think the long-form error can be quite helpful, so I don't think it should be replaced by a shorter message.

@ErikSchierboom
Copy link
Member Author

Both would be great.

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

No branches or pull requests

2 participants