Skip to content

Commit

Permalink
update return by switch default
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Oct 23, 2023
1 parent 2a47a54 commit 0620580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-aws-sdk/key_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func KeyManager(context context.Context, ctx *cli.Context, keyType string) error
flagName = "private-key"
default:
log.Error("Key manager ", "error keyType", keyType)
return nil
return errors.New("unknown key type")
}
return load(context, ctx, awsRegion, secretName, flagName)
}
Expand Down

0 comments on commit 0620580

Please sign in to comment.