mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 09:47:06 +00:00
lxc-execute: print error message when failed
Signed-off-by: Long Wang <w@laoqinren.net>
This commit is contained in:
parent
b5398df96c
commit
6de247e335
@ -160,7 +160,9 @@ int main(int argc, char *argv[])
|
|||||||
bret = c->start(c, 1, my_args.argv);
|
bret = c->start(c, 1, my_args.argv);
|
||||||
ret = c->error_num;
|
ret = c->error_num;
|
||||||
lxc_container_put(c);
|
lxc_container_put(c);
|
||||||
if (!bret)
|
if (!bret) {
|
||||||
|
ERROR("Failed run an application inside container");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
exit(ret);
|
exit(ret);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user