Skip to content

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

Merged
zolrath merged 1 commit intozolrath:masterfrom
nilbus:exit-status
Aug 22, 2015
Merged

Return an error exit status from client commands that fail#47
zolrath merged 1 commit intozolrath:masterfrom
nilbus:exit-status

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