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

Report error on remote command #1097

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cgull
Copy link
Member

@cgull cgull commented May 18, 2020

This hopefully helps with a long-time papercut: If the command to start the remote Mosh server fails, the error reported may be "Did not find remote IP address (is SSH ProxyCommand disabled?)." or "Did not find mosh server startup message. (Have you installed mosh on your server?)" The first message, especially, can be rather misleading to new Mosh users. This change reports non-zero exitstatus instead, which I think will make things clearer.

There's a few PRs here on GitHub that mention this, but it's a frequent question on IRC.

cgull added 4 commits May 17, 2020 22:50
Early exit from a block is clearer.
This allows its use for error messages in the parent-- used in the
next commit.
I think this will help with the papercut of "Did not find mosh server
startup message".  This message confuses people; often the real
problem is that the command to start the remote mosh-server failed
somehow.

Fixes mobile-shell#1042, partially resolves mobile-shell#1005.

Also relevant for mobile-shell#1042 and countless questions on IRC.
@cgull cgull changed the title Mosh handle exitstatus Report error on remote command May 18, 2020
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.

1 participant