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

Merged
merged 1 commit into from Aug 22, 2015

Projects

None yet

2 participants

@nilbus
Contributor
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
Owner
zolrath commented Aug 22, 2015

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

@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