Commit a0e686fd by Thomas Parrott

lxc/tools/lxc/destroy: Restores error message on container destroy

Partially reverts 65b92ea5 so that trying to destroy a non-existent container gives an error message. Signed-off-by: 's avatarThomas Parrott <thomas.parrott@canonical.com>
parent ebd5b33c
......@@ -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);
}
......
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