mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-12 21:10:22 +03:00
Print errno in user file opening errors.
This commit is contained in:
parent
f5d3859e07
commit
2ed2914fa3
4
data.c
4
data.c
@ -177,13 +177,13 @@ int user_open(snac *snac, const char *uid)
|
|||||||
srv_log(xs_fmt("cannot parse '%s'", key_file));
|
srv_log(xs_fmt("cannot parse '%s'", key_file));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
srv_log(xs_fmt("error opening '%s'", key_file));
|
srv_log(xs_fmt("error opening '%s' %d", key_file, errno));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
srv_log(xs_fmt("cannot parse '%s'", cfg_file));
|
srv_log(xs_fmt("cannot parse '%s'", cfg_file));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
srv_debug(2, xs_fmt("error opening '%s'", cfg_file));
|
srv_debug(2, xs_fmt("error opening '%s' %d", cfg_file, errno));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
srv_debug(1, xs_fmt("invalid user '%s'", uid));
|
srv_debug(1, xs_fmt("invalid user '%s'", uid));
|
||||||
|
Loading…
Reference in New Issue
Block a user