Skip to content

Commit 11711c5

Browse files
authored
Set errwriter for urfave/cli v1 (#26616)
Resolves #26615
1 parent bcb0f3a commit 11711c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ func main() {
150150
log.GetManager().Close()
151151
os.Exit(code)
152152
}
153+
app.ErrWriter = os.Stderr
154+
153155
_ = cmd.RunMainApp(app, os.Args...) // all errors should have been handled by the RunMainApp
154156
log.GetManager().Close()
155157
}

0 commit comments

Comments
 (0)