Commit 978a7383 by Christian Brauner Committed by GitHub

Merge pull request #1674 from 0x0916/2017-07-04/lxc-execute

lxc-execute: print error message when failed
parents b5398df9 6de247e3
...@@ -160,7 +160,9 @@ int main(int argc, char *argv[]) ...@@ -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);
} }
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