From a0e686fdac568b8a6072be40868ffd3ac570efbe Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Mon, 14 Oct 2019 10:10:21 +0100 Subject: [PATCH] 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 --- src/lxc/tools/lxc_destroy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.2