]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc_init better error reporting
authorMichel Normand <normand@fr.ibm.com>
Thu, 19 Nov 2009 14:06:02 +0000 (15:06 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 19 Nov 2009 14:06:02 +0000 (15:06 +0100)
Display the 'rcfile' value on error

Signed-off-by: Michel Normand <normand@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/start.c

index 2946624b6ae110f6b8cd7af623ca4d14779b5b67..714342168db3cab45db3ece80fbc804d0c5f6fbe 100644 (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;
                }
        }