mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-13 17:54:20 +00:00
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:
parent
16950ecb45
commit
8ac1b0bf82
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user