Skip to content

Commit

Permalink
Set errwriter for urfave/cli v1 (#26616)
Browse files Browse the repository at this point in the history
Resolves #26615
  • Loading branch information
jolheiser committed Aug 21, 2023
1 parent bcb0f3a commit 11711c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Expand Up @@ -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()
}
Expand Down

0 comments on commit 11711c5

Please sign in to comment.