summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-11-16 20:12:14 +0100
committerMax <msuraev@sysmocom.de>2018-11-19 09:17:09 +0000
commita4c22ba00d08aeea84c73ecb24e9e453d49103a1 (patch)
treee9a5eec302707ea181a532c8d2998f56fc9929a5 /src
parent264378a867a1e6217e8dedb88bfb2f0d063912bd (diff)
osmocon: log error cause for socket opening
Diffstat (limited to 'src')
-rw-r--r--src/host/osmocon/osmoload.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host/osmocon/osmoload.c b/src/host/osmocon/osmoload.c
index decdc13..d320b29 100644
--- a/src/host/osmocon/osmoload.c
+++ b/src/host/osmocon/osmoload.c
@@ -499,7 +499,8 @@ loader_connect(const char *socket_path) {
rc = osmo_sock_unix_init_ofd(conn, SOCK_STREAM, 0, socket_path, OSMO_SOCK_F_CONNECT);
if (rc < 0) {
- fprintf(stderr, "Failed to create unix domain socket %s\n", socket_path);
+ fprintf(stderr, "Failed to create unix domain socket %s: %s\n",
+ socket_path, strerror(-rc));
exit(1);
}