Clearer error message on missing MOSH IP (fixed #33 github issue)

This commit is contained in:
Keith Winstein
2012-03-06 17:43:33 -05:00
parent 28f9cf7e4a
commit 568f7d9b96
+5 -1
View File
@@ -154,7 +154,11 @@ if ( $pid == 0 ) { # child
}
waitpid $pid, 0;
if ( not defined $ip or not defined $port ) {
if ( not defined $ip ) {
die "$0: Did not find remote IP address (is SSH ProxyCommand disabled?).\n";
}
if ( not defined $key or not defined $port ) {
die "$0: Did not find mosh server startup message.\n";
}