Unverified Commit 64eebf35 by Long Wang Committed by Stéphane Graber

lxc-execute: print error message when failed

Signed-off-by: 's avatarLong Wang <w@laoqinren.net>
parent 04ed77c0
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment