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 1 commit into from Aug 22, 2015


Copy link

@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 $?

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.

Copy link

@zolrath 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
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.