mirror of https://github.com/coder/coder.git
xerrors over fmt
This commit is contained in:
parent
4d1abfe59d
commit
8c2c07720a
|
@ -566,7 +566,7 @@ func ShowUsageOnError(next HandlerFunc) HandlerFunc {
|
|||
return func(i *Invocation) error {
|
||||
err := next(i)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Usage: %s\nError: %w", i.Command.FullUsage(), err)
|
||||
return xerrors.Errorf("Usage: %s\nError: %w", i.Command.FullUsage(), err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue