Skip to content

fix: more robust error output in face of unknown errors#121

Merged
noahd1 merged 2 commits into
mainfrom
nd-log-unknown-errors
Aug 4, 2025
Merged

fix: more robust error output in face of unknown errors#121
noahd1 merged 2 commits into
mainfrom
nd-log-unknown-errors

Conversation

@noahd1

@noahd1 noahd1 commented Aug 1, 2025

Copy link
Copy Markdown
Member

A customer recently reported an error running this action and the ouput of the action was simply:

Warning: Error uploading coverage. Output from the Qlty CLI follows:

This would happen, I believe, if an error occurs with the actual attempt to execute the qlty binary, as opposed to an error output by qlty.

We were not catching the error object in the try/catch blocks here, so effectively we're losing information when an error occurs.

This enhances our error reporting so that if an error occurs, and there's no output from the tool, we instead output information from the try/catch's error object.

I also fixed a couple cosmetic issues (typos in descriptions or variable names)

Copilot AI review requested due to automatic review settings August 1, 2025 18:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

@noahd1 noahd1 requested a review from brynary August 1, 2025 18:48
@qltysh

qltysh Bot commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

Diff Coverage: The code coverage on the diff in this pull request is 92.6%.

Total Coverage: This PR will decrease coverage by 0.57%.

File Coverage Changes
Path File Coverage Δ Indirect
coverage/src/action.ts -1.7
🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@noahd1 noahd1 merged commit 6bec266 into main Aug 4, 2025
5 checks passed
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.

3 participants