ipc: Print socket filename and errno in error message

This commit is contained in:
Christoph Haag 2021-04-20 16:03:44 +02:00
parent 885a668a03
commit 341fa45eda

View file

@ -141,7 +141,7 @@ ipc_connect(struct ipc_connection *ipc_c)
ret = connect(socket, (struct sockaddr *)&addr, sizeof(addr));
if (ret < 0) {
IPC_ERROR(ipc_c, "Socket Connect error!");
IPC_ERROR(ipc_c, "Failed to connec to socket %s: %s!", sock_file, strerror(errno));
close(socket);
return false;
}