Skip to content

feat: better error diagnostics - #568

Merged
kmannislands merged 3 commits into
mainfrom
giles-debugger-exit126
Jun 22, 2026
Merged

feat: better error diagnostics#568
kmannislands merged 3 commits into
mainfrom
giles-debugger-exit126

Conversation

@gilescope

Copy link
Copy Markdown

A mechanism for being more explicit about what the causes of an error might be.

Signed-off-by: Giles Cope <gilescope@gmail.com>
@gilescope
gilescope requested a review from a team as a code owner June 14, 2026 12:06
@gilescope
gilescope requested review from janishorsts and removed request for a team June 14, 2026 12:06
@gilescope gilescope changed the title feat: better diagnostics feat: better error diagnostics Jun 14, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces an exitCodeDiagnostic helper function to provide detailed troubleshooting tips when a command fails with exit code 126, and includes unit tests to verify this functionality. The feedback suggests refactoring the conditional block in main.go to avoid using an if statement with an initializer, declaring the diagnostic variable on a separate line instead.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread cmd/debugger/main.go
@github-actions

github-actions Bot commented Jun 14, 2026

Copy link
Copy Markdown

➖ Are we earthbuild yet?

No change in "earthly" occurrences

📈 Overall Progress

Branch Total Count
main 5328
This PR 5328
Difference +0

Keep up the great work migrating from Earthly to Earthbuild! 🚀

💡 Tips for finding more occurrences

Run locally to see detailed breakdown:

./.github/scripts/count-earthly.sh

Note that the goal is not to reach 0.
There is anticipated to be at least some occurences of earthly in the source code due to backwards compatibility with config files and language constructs.

@gilescope gilescope mentioned this pull request Jun 14, 2026
12 tasks
@kmannislands
kmannislands enabled auto-merge (squash) June 18, 2026 16:51
@kmannislands
kmannislands merged commit ab84ec6 into main Jun 22, 2026
89 of 90 checks passed
@kmannislands
kmannislands deleted the giles-debugger-exit126 branch June 22, 2026 09:28
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