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
|
|
@ -162,7 +162,7 @@ func list(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
if len(matchers) > 0 && matchedCount == 0 {
|
||||
return fmt.Errorf("cannot ls '%s': No matches for pattern", targetDB)
|
||||
return fmt.Errorf("cannot ls '%s': No matches for pattern %s", targetDB, formatGlobPatterns(globPatterns))
|
||||
}
|
||||
|
||||
applyColumnConstraints(tw, columnKinds, output, maxContentWidths)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue