You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v3.6.2 adds empty line to stderr when cli.Exit is called with empty message #2263
Are you running the latest v3 release? The list of releases is here.
Did you check the manual for your release? The v3 manual is here
Did you perform a search about this problem? Here's the GitHub guide about searching.
Dependency Management
My project is using go modules.
Describe the bug
The change from #2237 that is released in version v3.6.2 causes empty line to be added to stderr if cli.Exit is called with an empty message such as:
cli.Exit("", exitError.ExitCode())
To reproduce
cli.Exit("", exitError.ExitCode())
Observed behavior
Our test assertions are now broken due to unnecessary empty line in the output.
Expected behavior
I want to understand if this was intentional, because Exit accepts empty string as valid input. I believe it should either not accept it, or not add unnecessary empty lines.
Activity
[-]your bug title goes here[/-][+]v3.6.2 adds empty line to stderr when cli.Exit is called with empty message[/+]dearchap commentedon Feb 22, 2026
@mustafabayar Yes that change was intentional. It seems to have had an unintended side effect that you mention.
fix: don't print empty line to stderr when Exit message is empty
errors: don't print an empty line for Exit with empty message
alliasgher commentedon Apr 13, 2026
Opened #2312 for this.
errors: don't print an empty line for Exit with empty message