From af7321ae3fac08b1b29d89488bdb489cf627a1d0 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 19 Apr 2016 11:59:48 +0200 Subject: [PATCH] macvlan: fix error handling (cherry picked from commit f9a0aface38ec4ea21dfd9ae8e4e3d6777b372e6) --- src/devices/nm-device-macvlan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/devices/nm-device-macvlan.c b/src/devices/nm-device-macvlan.c index cd02cb8e00..1360517440 100644 --- a/src/devices/nm-device-macvlan.c +++ b/src/devices/nm-device-macvlan.c @@ -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;