chore(testdata): updates test expectations to match new error messaging
This commit is contained in:
parent
06e09df829
commit
def2941128
10 changed files with 22 additions and 173 deletions
|
|
@ -81,7 +81,10 @@ func del(cmd *cobra.Command, args []string) error {
|
|||
if err := tx.Delete(k); errors.Is(err, badger.ErrKeyNotFound) {
|
||||
return fmt.Errorf("cannot remove '%s': No such key", args[0])
|
||||
}
|
||||
return fmt.Errorf("cannot remove '%s': %v", args[0], err)
|
||||
if err != nil {
|
||||
return fmt.Errorf("cannot remove '%s': %v", args[0], err)
|
||||
}
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue