1 diff --git a/src/lxc/conf.c b/src/lxc/conf.c
2 index 0e3421b..91c90b1 100644
5 @@ -3083,9 +3083,13 @@ void lxc_delete_network(struct lxc_handler *handler)
6 * namespace is destroyed but in case we did not moved the
7 * interface to the network namespace, we have to destroy it
9 - if (netdev->ifindex != 0 &&
10 - lxc_netdev_delete_by_index(netdev->ifindex))
11 - WARN("failed to remove interface '%s'", netdev->name);
12 + if (netdev->ifindex != 0) {
13 + int err = lxc_netdev_delete_by_index(netdev->ifindex);
15 + WARN("failed to remove interface '%s': %i: %s", netdev->name,
16 + err, strerror(-err));