From: Michel Normand Date: Thu, 19 Nov 2009 14:06:02 +0000 (+0100) Subject: lxc_init better error reporting X-Git-Tag: lxc_0_6_4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ac1b0bf82c5329fc6435ebb4309e15858dc7f6d;p=thirdparty%2Flxc.git lxc_init better error reporting Display the 'rcfile' value on error Signed-off-by: Michel Normand Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/start.c b/src/lxc/start.c index 2946624b6..714342168 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; } }