mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 22:20:12 +01:00
macvlan: fix error handling
This commit is contained in:
parent
3f230c1ad8
commit
f9a0aface3
1 changed files with 2 additions and 1 deletions
|
|
@ -228,7 +228,8 @@ create_and_realize (NMDevice *device,
|
|||
|
||||
lnk.mode = setting_mode_to_platform (nm_setting_macvlan_get_mode (s_macvlan));
|
||||
if (!lnk.mode) {
|
||||
nm_log_info (LOGD_DEVICE, "unsupported MACVLAN mode %u in connection %s",
|
||||
g_set_error (error, NM_DEVICE_ERROR, NM_DEVICE_ERROR_FAILED,
|
||||
"unsupported MACVLAN mode %u in connection %s",
|
||||
nm_setting_macvlan_get_mode (s_macvlan),
|
||||
nm_connection_get_uuid (connection));
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue