From: Thomas Parrott Date: Mon, 14 Oct 2019 09:10:21 +0000 (+0100) Subject: lxc/tools/lxc/destroy: Restores error message on container destroy X-Git-Tag: lxc-4.0.0~105^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0e686fdac568b8a6072be40868ffd3ac570efbe;p=thirdparty%2Flxc.git lxc/tools/lxc/destroy: Restores error message on container destroy Partially reverts 65b92ea5fcab559fd21be2685bd2f15ef6d33532 so that trying to destroy a non-existent container gives an error message. Signed-off-by: Thomas Parrott --- diff --git a/src/lxc/tools/lxc_destroy.c b/src/lxc/tools/lxc_destroy.c index 9fb511e04..d1c6cc620 100644 --- a/src/lxc/tools/lxc_destroy.c +++ b/src/lxc/tools/lxc_destroy.c @@ -256,7 +256,7 @@ int main(int argc, char *argv[]) } if (!c->is_defined(c)) { - INFO("Container %s not found.", my_args.name); + ERROR("Container is not defined"); lxc_container_put(c); exit(EXIT_FAILURE); }