Skip to content

Commit 4302591

Browse files
committed
prefix error
1 parent c3483be commit 4302591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/clibase/cmd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ func UsageErrorPrefix(next HandlerFunc) HandlerFunc {
566566
return func(i *Invocation) error {
567567
err := next(i)
568568
if err != nil {
569-
return fmt.Errorf("Usage: %s\n%w", i.Command.FullUsage(), err)
569+
return fmt.Errorf("Usage: %s\nError: %w", i.Command.FullUsage(), err)
570570
}
571571
return nil
572572
}

0 commit comments

Comments
 (0)