Commit 8ac1b0bf by Michel Normand Committed by Daniel Lezcano

lxc_init better error reporting

Display the 'rcfile' value on error Signed-off-by: 's avatarMichel Normand <normand@fr.ibm.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 16950ecb
...@@ -253,12 +253,12 @@ struct lxc_handler *lxc_init(const char *name, const char *rcfile) ...@@ -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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment