Skip to content

Commit

Permalink
private/metaclient: fix error format string
Browse files Browse the repository at this point in the history
Change-Id: If2db82ff30ad18c92ab5d92771f798d1996c3386
  • Loading branch information
egonelbre committed Aug 14, 2024
1 parent 9c782c9 commit 9559691
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions private/metaclient/movecopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ func convertKeys(input []*pb.EncryptedKeyAndNonce) []EncryptedKeyAndNonce {
func validateMoveCopyInput(oldbucket, oldkey, newbucket, newkey string) error {
switch {
case oldbucket == "":
return ErrNoBucket.New(oldbucket)
return ErrNoBucket.New("%v", oldbucket)
case oldkey == "":
return ErrNoPath.New(oldkey)
return ErrNoPath.New("%v", oldkey)
case newbucket == "": // TODO should we make this error different
return ErrNoBucket.New(newbucket)
return ErrNoBucket.New("%v", newbucket)
case newkey == "": // TODO should we make this error different
return ErrNoPath.New(newkey)
return ErrNoPath.New("%v", newkey)
}

return nil
Expand Down

0 comments on commit 9559691

Please sign in to comment.