diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 5b1376ad3e0..ec1a97a7c9a 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -2146,8 +2146,8 @@ int link_add(Manager *m, sd_rtnl_message *message, Link **ret) { sprintf(ifindex_str, "n%d", link->ifindex); device = udev_device_new_from_device_id(m->udev, ifindex_str); if (!device) { - log_warning_link(link, "could not find udev device"); - return -ENOENT; + log_warning_link(link, "could not find udev device: %m"); + return -errno; } if (udev_device_get_is_initialized(device) <= 0) {