Skip to content

better display of errors#182

Merged
gerep merged 1 commit into
mainfrom
dg-better-errors
Apr 30, 2026
Merged

better display of errors#182
gerep merged 1 commit into
mainfrom
dg-better-errors

Conversation

@gerep
Copy link
Copy Markdown
Contributor

@gerep gerep commented Apr 30, 2026

Closes https://github.com/bootdotdev/go-api-gate/issues/8112

The first run is using this change. Note the Failed Command: Running: go test -v. The second run is what we currently have.

image

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves CLI renderer output to show the underlying command that failed when a lesson submission fails, making error displays more actionable for users (per issue #8112).

Changes:

  • When result is failure, prints a Failed Command: line derived from the step text at FailedStepIndex.
  • Adds bounds-checking around indexing into m.steps for the failed-command display.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread render/view.go Outdated
@skovranek
Copy link
Copy Markdown
Member

Looks good to me! Maybe ask Lane/Hunter for product approval? They may have some opinions about how it should look.

@gerep gerep force-pushed the dg-better-errors branch from 190c3f7 to 5816468 Compare April 30, 2026 18:54
Copy link
Copy Markdown
Member

@hbeckmann hbeckmann left a comment

Choose a reason for hiding this comment

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

LGTM

@gerep gerep merged commit 6cd3337 into main Apr 30, 2026
@gerep gerep deleted the dg-better-errors branch April 30, 2026 19:04
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.

4 participants