aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Normand <normand@fr.ibm.com>2009-11-19 15:06:02 +0100
committerDaniel Lezcano <dlezcano@fr.ibm.com>2009-11-19 15:06:02 +0100
commit8ac1b0bf82c5329fc6435ebb4309e15858dc7f6d (patch)
tree5902904a7b7421daaa7f6dbb13d9cf22848edac4
parentchange network_netdev function parameter (diff)
downloadlxc-8ac1b0bf82c5329fc6435ebb4309e15858dc7f6d.tar.gz
lxc-8ac1b0bf82c5329fc6435ebb4309e15858dc7f6d.tar.bz2
lxc-8ac1b0bf82c5329fc6435ebb4309e15858dc7f6d.zip
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>
-rw-r--r--src/lxc/start.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lxc/start.c b/src/lxc/start.c
index 2946624..7143421 100644
--- a/src/lxc/start.c
+++ b/src/lxc/start.c
@@ -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;
}
}