summaryrefslogtreecommitdiff
path: root/libnm-util/nm-setting-ip6-config.c
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2014-03-03 11:43:06 +0100
committerJiří Klimeš <jklimes@redhat.com>2014-03-03 12:42:05 +0100
commitd98a34dcdadb9c30ae8f6d2c4912c287f484f92c (patch)
tree4029777ca3e059939535c845324845b2b2ec862a /libnm-util/nm-setting-ip6-config.c
parent90ff0786cc466689395fdc1c6ec0a9c010e7ebad (diff)
downloadNetworkManager-d98a34dcdadb9c30ae8f6d2c4912c287f484f92c.tar.gz
libnm-util: more specific error for missing ipv[46].adddress when method=manual
Diffstat (limited to 'libnm-util/nm-setting-ip6-config.c')
-rw-r--r--libnm-util/nm-setting-ip6-config.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libnm-util/nm-setting-ip6-config.c b/libnm-util/nm-setting-ip6-config.c
index d421d39ce6..d8aa818664 100644
--- a/libnm-util/nm-setting-ip6-config.c
+++ b/libnm-util/nm-setting-ip6-config.c
@@ -820,10 +820,11 @@ verify (NMSetting *setting, GSList *all_settings, GError **error)
if (!strcmp (priv->method, NM_SETTING_IP6_CONFIG_METHOD_MANUAL)) {
if (!priv->addresses) {
- g_set_error_literal (error,
- NM_SETTING_IP6_CONFIG_ERROR,
- NM_SETTING_IP6_CONFIG_ERROR_MISSING_PROPERTY,
- _("property is missing"));
+ g_set_error (error,
+ NM_SETTING_IP6_CONFIG_ERROR,
+ NM_SETTING_IP6_CONFIG_ERROR_MISSING_PROPERTY,
+ _("this property cannot be empty for '%s=%s'"),
+ NM_SETTING_IP6_CONFIG_METHOD, priv->method);
g_prefix_error (error, "%s.%s: ", NM_SETTING_IP6_CONFIG_SETTING_NAME, NM_SETTING_IP6_CONFIG_ADDRESSES);
return FALSE;
}