]>
Commit | Line | Data |
---|---|---|
4cb3070f WB |
1 | diff --git a/src/lxc/conf.c b/src/lxc/conf.c |
2 | index 0e3421b..91c90b1 100644 | |
3 | --- a/src/lxc/conf.c | |
4 | +++ b/src/lxc/conf.c | |
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 | |
8 | */ | |
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); | |
14 | + if (err) { | |
15 | + WARN("failed to remove interface '%s': %i: %s", netdev->name, | |
16 | + err, strerror(-err)); | |
17 | + } | |
18 | + } | |
19 | } | |
20 | } | |
21 |