nix-copy-closure: Show a proper error message if no host name is given

This commit is contained in:
Eelco Dolstra 2013-05-03 11:12:11 +02:00
parent e6c44d166a
commit c51b6a893c
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ while (@ARGV) {
} }
} }
die "$0: you did not specify a host name\n" unless defined $sshHost;
openSSHConnection $sshHost or die "$0: unable to start SSH\n"; openSSHConnection $sshHost or die "$0: unable to start SSH\n";