Skip to content
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

Return an error exit status from client commands that fail #47

Merged
merged 1 commit into from
Aug 22, 2015

Conversation

nilbus
Copy link
Contributor

@nilbus nilbus commented Nov 22, 2014

Commands like wemux pair should exit with a non-zero status when the command
fails. In my specific use case, .bash_profile attempts to attach to wemux, if
running, and falls back to a different command if not running.

$ wemux pair
No wemux server to pair with on 'wemux'.
$ echo $?
126

I believe this patch covers all the client commands. I haven't looked at the
server commands, so you may want to do that own your own.

@zolrath
Copy link
Owner

zolrath commented Aug 22, 2015

Makes good sense, thank you! Sorry for the insane delay.

zolrath added a commit that referenced this pull request Aug 22, 2015
Return an error exit status from client commands that fail
@zolrath zolrath merged commit 01c6541 into zolrath:master Aug 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants