feat(cmd): improves error messaging for globs

This commit is contained in:
Lewis Wynne 2025-12-18 01:53:09 +00:00
parent 20294a9279
commit 3d4cd40a17
8 changed files with 20 additions and 14 deletions

View file

@ -116,7 +116,7 @@ func restore(cmd *cobra.Command, args []string) error {
}
if len(matchers) > 0 && !matched {
return fmt.Errorf("cannot restore '%s': No matches for pattern", displayTarget)
return fmt.Errorf("cannot restore '%s': No matches for pattern %s", displayTarget, formatGlobPatterns(globPatterns))
}
fmt.Fprintf(cmd.ErrOrStderr(), "Restored %d entries into @%s\n", restored, dbName)