The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/1674
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Long Wang <w...@laoqinren.net>
From 6de247e3353052341724d6e11e747f44b4955b2e Mon Sep 17 00:00:00 2001 From: Long Wang <w...@laoqinren.net> Date: Tue, 4 Jul 2017 16:16:30 +0800 Subject: [PATCH] lxc-execute: print error message when failed Signed-off-by: Long Wang <w...@laoqinren.net> --- src/lxc/tools/lxc_execute.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lxc/tools/lxc_execute.c b/src/lxc/tools/lxc_execute.c index 1ff96aba3..0b3309a30 100644 --- a/src/lxc/tools/lxc_execute.c +++ b/src/lxc/tools/lxc_execute.c @@ -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); }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel