-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ExitCode to the "Exited" message #174
Conversation
start/process.go
Outdated
@@ -209,3 +210,14 @@ func (p *process) respawn() { | |||
p.waitPid() | |||
p.output.WriteBoldLinef(p, "Restarted with pid %v...", p.pid) | |||
} | |||
|
|||
func (p *process) reportExitCode() { | |||
exitCode := p.tmux.ExitCode() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tmuxClient.ExitCode()
returns the maximum exit code among all panes. It's not applicable here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, done!
start/process.go
Outdated
message := "Exited" | ||
|
||
if exitCode != 0 { | ||
message = fmt.Sprintf("Exited with code %d", exitCode) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it hurt to always print exit code?
message := "Exited" | |
if exitCode != 0 { | |
message = fmt.Sprintf("Exited with code %d", exitCode) | |
} | |
message := fmt.Sprintf("Exited with code %d", exitCode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
694a90c
to
2477f27
Compare
8ec4ba1
to
adbc082
Compare
5f262e5
to
1392b7c
Compare
Thanks!! |
Resolve #169
Add the Exit code to the "Exited"