feat(cmd): improves error messaging for globs
This commit is contained in:
parent
20294a9279
commit
3d4cd40a17
8 changed files with 20 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue