Display name of (remote) host in error message

This commit is contained in:
Uwe Seimet 2021-07-19 12:02:44 +02:00
parent 43744cb372
commit d275589ca1

View File

@ -43,7 +43,7 @@ BOOL SendCommand(const char *hostname, const Command& command)
// Connect
if (connect(fd, (struct sockaddr *)&server, sizeof(struct sockaddr_in)) < 0) {
fprintf(stderr, "Error : Can't connect to rascsi process\n");
fprintf(stderr, "Error : Can't connect to rascsi process on host '%s'\n", hostname);
return false;
}