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:
Michel Normand 2009-11-19 15:06:02 +01:00 committed by Daniel Lezcano
parent 16950ecb45
commit 8ac1b0bf82

View File

@ -253,12 +253,12 @@ struct lxc_handler *lxc_init(const char *name, const char *rcfile)
if (rcfile) {
if (access(rcfile, F_OK)) {
ERROR("failed to access rcfile");
ERROR("failed to access '%s'", rcfile);
goto out_aborting;
}
if (lxc_config_read(rcfile, &handler->conf)) {
ERROR("failed to read the configuration file");
ERROR("failed to read '%s'", rcfile);
goto out_aborting;
}
}