Skip to content

Commit 0a56f02

Browse files
committed
sign: on error show the full output
1 parent 0723683 commit 0a56f02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sign/sign.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package sign
44
import (
55
"bytes"
66
"context"
7+
"fmt"
78
"io"
89
"os/exec"
910

@@ -100,7 +101,7 @@ func Sign(ctx context.Context, opts *Options) error {
100101
// Execute
101102
if err := cmd.Run(); err != nil {
102103
logger.Error("error codesigning", "err", err, "output", out.String())
103-
return err
104+
return fmt.Errorf("error signing:\n\n%s", out.String())
104105
}
105106

106107
logger.Info("codesigning complete", "output", out.String())

0 commit comments

Comments
 (0)