mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-15 23:18:24 +02:00
vlan: improve error message on missing parent ifindex
The message should only tell what went wrong.
This commit is contained in:
parent
41b0e8c5a5
commit
b53f8de08b
1 changed files with 1 additions and 1 deletions
|
|
@ -239,7 +239,7 @@ create_and_realize (NMDevice *device,
|
|||
parent_ifindex = nm_device_get_ifindex (parent);
|
||||
if (parent_ifindex <= 0) {
|
||||
g_set_error (error, NM_DEVICE_ERROR, NM_DEVICE_ERROR_MISSING_DEPENDENCIES,
|
||||
"cannot retrieve ifindex of interface %s (%s): skip VLAN creation for now",
|
||||
"cannot retrieve ifindex of interface %s (%s)",
|
||||
nm_device_get_iface (parent),
|
||||
nm_device_get_type_desc (parent));
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue