summaryrefslogtreecommitdiff
path: root/libnm-util/nm-setting-connection.c
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2013-03-14 11:00:45 +0100
committerJiří Klimeš <jklimes@redhat.com>2013-03-14 11:00:45 +0100
commitf36c7301f03975aee71a2e861b144cbaf1ca6684 (patch)
treec68ce166de3701c8650ffb8c583519777dc03cb6 /libnm-util/nm-setting-connection.c
parent2295e5fbe019a0c445a9fe01e7c00314a55f0339 (diff)
downloadNetworkManager-f36c7301f03975aee71a2e861b144cbaf1ca6684.tar.gz
libnm-util: more verbose verification errors for :interface-name
Diffstat (limited to 'libnm-util/nm-setting-connection.c')
-rw-r--r--libnm-util/nm-setting-connection.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libnm-util/nm-setting-connection.c b/libnm-util/nm-setting-connection.c
index b88bc2dad5..c4f6726752 100644
--- a/libnm-util/nm-setting-connection.c
+++ b/libnm-util/nm-setting-connection.c
@@ -713,7 +713,9 @@ verify (NMSetting *setting, GSList *all_settings, GError **error)
g_set_error (error,
NM_SETTING_CONNECTION_ERROR,
NM_SETTING_CONNECTION_ERROR_INVALID_PROPERTY,
- NM_SETTING_CONNECTION_INTERFACE_NAME);
+ _("'%s' doesn't match the virtual interface name '%s'"),
+ priv->interface_name, virtual_iface);
+ g_prefix_error (error, "%s: ", NM_SETTING_CONNECTION_INTERFACE_NAME);
return FALSE;
}
} else
@@ -727,7 +729,9 @@ verify (NMSetting *setting, GSList *all_settings, GError **error)
g_set_error (error,
NM_SETTING_CONNECTION_ERROR,
NM_SETTING_CONNECTION_ERROR_INVALID_PROPERTY,
- NM_SETTING_CONNECTION_INTERFACE_NAME);
+ _("'%s' is not a valid interface name"),
+ priv->interface_name);
+ g_prefix_error (error, "%s: ", NM_SETTING_CONNECTION_INTERFACE_NAME);
return FALSE;
}
}