mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
ipc: Print socket filename and errno in error message
This commit is contained in:
parent
885a668a03
commit
341fa45eda
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue