Browse Source

Set errwriter for urfave/cli v1 (#26616)

Resolves #26615
tags/v1.20.4
John Olheiser 10 months ago
parent
commit
11711c51cb
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      main.go

+ 2
- 0
main.go View File

@@ -150,6 +150,8 @@ func main() {
log.GetManager().Close()
os.Exit(code)
}
app.ErrWriter = os.Stderr

_ = cmd.RunMainApp(app, os.Args...) // all errors should have been handled by the RunMainApp
log.GetManager().Close()
}

Loading…
Cancel
Save