Skip to content

Commit

Permalink
fix: error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleMaywood committed Oct 25, 2024
1 parent ff33361 commit 4d3bb0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func ReadPrivateKey(path string) (gossh.Signer, error) {
func DecodeBase64PrivateKey(key string) (gossh.Signer, error) {
bs, err := base64.StdEncoding.DecodeString(key)
if err != nil {
return nil, fmt.Errorf("decode private key: %w", err)
return nil, fmt.Errorf("decode base64: %w", err)
}

k, err := gossh.ParsePrivateKey(bs)
Expand Down Expand Up @@ -294,7 +294,7 @@ func SetupRepoAuth(logf func(string, ...any), options *options.Options) transpor
if options.GitSSHPrivateKeyBase64 != "" {
s, err := DecodeBase64PrivateKey(options.GitSSHPrivateKeyBase64)
if err != nil {
logf("❌ Failed to decode base 64 private key : %s", err.Error())
logf("❌ Failed to decode base 64 private key: %s", err.Error())
} else {
logf("🔑 Using %s key!", s.PublicKey().Type())
signer = s
Expand Down

0 comments on commit 4d3bb0e

Please sign in to comment.