summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-04-19 11:59:48 +0200
committerLubomir Rintel <lkundrak@v3.sk>2016-04-19 13:32:28 +0200
commitf9a0aface38ec4ea21dfd9ae8e4e3d6777b372e6 (patch)
tree1ad7145e311abc51ee0c26f624f2520b1f7b7dfd
parent3f230c1ad8252c62745b5e92a137482cbac10b10 (diff)
downloadNetworkManager-f9a0aface38ec4ea21dfd9ae8e4e3d6777b372e6.tar.gz
macvlan: fix error handling
-rw-r--r--src/devices/nm-device-macvlan.c3
1 files changed, 2 insertions, 1 deletions
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;