macvlan: fix error handling

(cherry picked from commit f9a0aface3)
This commit is contained in:
Lubomir Rintel 2016-04-19 11:59:48 +02:00
parent 4abb943e84
commit af7321ae3f

View file

@ -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;