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
|
|
@ -142,7 +142,7 @@ func dump(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
if len(matchers) > 0 && !matched {
|
||||
return fmt.Errorf("cannot dump '%s': No matches for pattern", displayTarget)
|
||||
return fmt.Errorf("cannot dump '%s': No matches for pattern %s", displayTarget, formatGlobPatterns(globPatterns))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue