Commit d096b7d
cmd/docker: render hints from errors that carry them
Hooks the new internal/hint package into the top-level error renderer.
After printing the error itself, walks the chain for any error
implementing hint.Hinter and prints its hint on its own line. This
makes hints a first-class output, separate from the error message,
without changing how errors are constructed or wrapped at call sites
that don't carry a hint.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>1 parent 57d2601 commit d096b7d
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
0 commit comments