mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-13 18:02:40 +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);
|
||||
ret = c->error_num;
|
||||
lxc_container_put(c);
|
||||
if (!bret)
|
||||
if (!bret) {
|
||||
ERROR("Failed run an application inside container");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
exit(ret);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user