Skip to content

Commit

Permalink
Returning stderr when gpg encrypt fails (getsops#762)
Browse files Browse the repository at this point in the history
Co-authored-by: AJ Bahnken <[email protected]>
  • Loading branch information
udayruddarraju and ajvb authored Oct 29, 2020
1 parent d8a6428 commit 886c1ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgp/keysource.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (key *MasterKey) encryptWithGPGBinary(dataKey []byte) error {
cmd.Stderr = &stderr
err := cmd.Run()
if err != nil {
return err
return fmt.Errorf("gpg binary failed with error: %s, %s", err, stderr.String())
}
key.EncryptedKey = stdout.String()
return nil
Expand Down

0 comments on commit 886c1ee

Please sign in to comment.