Skip to content

Commit

Permalink
Remove instances of log.Fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
13ajay committed Mar 20, 2024
1 parent 7e6270c commit 873f0c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws_signing_helper/signer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func Verify(payload []byte, publicKey crypto.PublicKey, digest crypto.Hash, sig
sum := sha512.Sum512(payload)
hash = sum[:]
default:
log.Fatal("unsupported digest")
log.Println("unsupported digest")
return false, errors.New("unsupported digest")
}

Expand Down
3 changes: 2 additions & 1 deletion aws_signing_helper/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ func Update(credentialsOptions CredentialsOpts, profile string, once bool) {
for {
credentialProcessOutput, err := GenerateCredentials(&credentialsOptions, signer, signatureAlgorithm)
if err != nil {
log.Fatal(err)
log.Println(err)
os.Exit(1)
}

// Assign credential values
Expand Down

0 comments on commit 873f0c6

Please sign in to comment.