diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-09-26 15:24:20 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-10-01 14:41:08 +0000 |
| commit | 12039a0e63377e86fa1b5adc3d327d6e07f23a32 (patch) | |
| tree | 0d622daed4041159362850994ab81d8ce351cbff /pkg/build | |
| parent | db09e5b2322f6dbd902a69405c2142617c6b8715 (diff) | |
pkg/osutil: make VerboseError nest other errors
After this change it fits more naturally into the Go's error
functionality.
Diffstat (limited to 'pkg/build')
| -rw-r--r-- | pkg/build/freebsd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/build/freebsd.go b/pkg/build/freebsd.go index 5de09738a..4b403d587 100644 --- a/pkg/build/freebsd.go +++ b/pkg/build/freebsd.go @@ -54,7 +54,7 @@ options DIAGNOSTIC // because FreeBSD's build doesn't correctly order the two // targets. Its output is useful for debugging though, so // include it here. - return ImageDetails{}, osutil.PrependContext(string(output), err) + return ImageDetails{}, fmt.Errorf("%s: %w", string(output), err) } kernelObjDir := filepath.Join(objPrefix, params.KernelDir, |
