Skip to content

Commit c312f85

Browse files
Update cmd/sops/main.go
Co-authored-by: Gabriel Martinez <19713226+GMartinez-Sisti@users.noreply.github.com> Signed-off-by: Boris Kreitchman <bkreitch@gmail.com>
1 parent e1ad36b commit c312f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/sops/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ func decryptionOrder(decryptionOrder string) ([]string, error) {
12931293
return nil, common.NewExitError(fmt.Sprintf("Invalid decryption key type: %s", v), codes.InvalidDecryptionKeyType)
12941294
}
12951295
if _, ok := unique[v]; ok {
1296-
return nil, common.NewExitError(fmt.Sprintf("Duplicate decryption key type: %s", v), codes.InvalidDecryptionKeyType)
1296+
return nil, common.NewExitError(fmt.Sprintf("Duplicate decryption key type: %s", v), codes.DuplicateDecryptionKeyType)
12971297
}
12981298
unique[v] = true
12991299
}

0 commit comments

Comments
 (0)