]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc/tools/lxc/destroy: Restores error message on container destroy 3161/head
authorThomas Parrott <thomas.parrott@canonical.com>
Mon, 14 Oct 2019 09:10:21 +0000 (10:10 +0100)
committerThomas Parrott <thomas.parrott@canonical.com>
Mon, 14 Oct 2019 09:13:48 +0000 (10:13 +0100)
Partially reverts 65b92ea5fcab559fd21be2685bd2f15ef6d33532 so that trying to destroy a non-existent container gives an error message.

Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
src/lxc/tools/lxc_destroy.c

index 9fb511e046f845179608d308991a4586bc936f5e..d1c6cc6207f778a928c5e1453f197e371da46228 100644 (file)
@@ -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);
        }