diff options
| author | 2023-02-08 15:03:35 +0100 | |
|---|---|---|
| committer | 2023-02-08 15:03:35 +0100 | |
| commit | 2ed2914fa30ad5bbb61e13e560218cee1931c035 (patch) | |
| tree | 680731809da961fb7eda5489af891e59c56db8e4 /data.c | |
| parent | Added the user to the notification. (diff) | |
| download | snac2-2ed2914fa30ad5bbb61e13e560218cee1931c035.tar.gz snac2-2ed2914fa30ad5bbb61e13e560218cee1931c035.tar.xz snac2-2ed2914fa30ad5bbb61e13e560218cee1931c035.zip | |
Print errno in user file opening errors.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -177,13 +177,13 @@ int user_open(snac *snac, const char *uid) | |||
| 177 | srv_log(xs_fmt("cannot parse '%s'", key_file)); | 177 | srv_log(xs_fmt("cannot parse '%s'", key_file)); |
| 178 | } | 178 | } |
| 179 | else | 179 | else |
| 180 | srv_log(xs_fmt("error opening '%s'", key_file)); | 180 | srv_log(xs_fmt("error opening '%s' %d", key_file, errno)); |
| 181 | } | 181 | } |
| 182 | else | 182 | else |
| 183 | srv_log(xs_fmt("cannot parse '%s'", cfg_file)); | 183 | srv_log(xs_fmt("cannot parse '%s'", cfg_file)); |
| 184 | } | 184 | } |
| 185 | else | 185 | else |
| 186 | srv_debug(2, xs_fmt("error opening '%s'", cfg_file)); | 186 | srv_debug(2, xs_fmt("error opening '%s' %d", cfg_file, errno)); |
| 187 | } | 187 | } |
| 188 | else | 188 | else |
| 189 | srv_debug(1, xs_fmt("invalid user '%s'", uid)); | 189 | srv_debug(1, xs_fmt("invalid user '%s'", uid)); |