mirror of
git://github.com/lxc/lxc
synced 2025-09-01 05:48:28 +00:00
lxc_init better error reporting
Display the 'rcfile' value on error Signed-off-by: Michel Normand <normand@fr.ibm.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
committed by
Daniel Lezcano
parent
16950ecb45
commit
8ac1b0bf82
@@ -253,12 +253,12 @@ struct lxc_handler *lxc_init(const char *name, const char *rcfile)
|
|||||||
|
|
||||||
if (rcfile) {
|
if (rcfile) {
|
||||||
if (access(rcfile, F_OK)) {
|
if (access(rcfile, F_OK)) {
|
||||||
ERROR("failed to access rcfile");
|
ERROR("failed to access '%s'", rcfile);
|
||||||
goto out_aborting;
|
goto out_aborting;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lxc_config_read(rcfile, &handler->conf)) {
|
if (lxc_config_read(rcfile, &handler->conf)) {
|
||||||
ERROR("failed to read the configuration file");
|
ERROR("failed to read '%s'", rcfile);
|
||||||
goto out_aborting;
|
goto out_aborting;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user