commit 2ed2914
default
·
2023-02-08 14:03:35 +0000 UTC
parent f5d3859
Print errno in user file opening errors.
1 files changed,
+2,
-2
M
data.c
M
data.c
+2,
-2
1@@ -177,13 +177,13 @@ int user_open(snac *snac, const char *uid)
2 srv_log(xs_fmt("cannot parse '%s'", key_file));
3 }
4 else
5- srv_log(xs_fmt("error opening '%s'", key_file));
6+ srv_log(xs_fmt("error opening '%s' %d", key_file, errno));
7 }
8 else
9 srv_log(xs_fmt("cannot parse '%s'", cfg_file));
10 }
11 else
12- srv_debug(2, xs_fmt("error opening '%s'", cfg_file));
13+ srv_debug(2, xs_fmt("error opening '%s' %d", cfg_file, errno));
14 }
15 else
16 srv_debug(1, xs_fmt("invalid user '%s'", uid));