chore(testdata): updates test expectations to match new error messaging

This commit is contained in:
Lewis Wynne 2025-12-17 14:28:18 +00:00
parent 06e09df829
commit def2941128
10 changed files with 22 additions and 173 deletions

View file

@ -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
},
}