diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2013-06-10 09:51:25 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2013-06-13 10:05:18 +0200 |
commit | 816ac9ee70d66d74686a84a1ff4eddfb691f5ce3 (patch) | |
tree | 4be5169fed0a8139515c9e0baf97753026eb248a /libnm-util/nm-setting-gsm.c | |
parent | 2cb9bc9bda7284ca811328bf2a1ebc9a2b1386bb (diff) | |
download | NetworkManager-816ac9ee70d66d74686a84a1ff4eddfb691f5ce3.tar.gz |
libnm-util: prefix errors with 'setting.property' instead of 'property' only
Diffstat (limited to 'libnm-util/nm-setting-gsm.c')
-rw-r--r-- | libnm-util/nm-setting-gsm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libnm-util/nm-setting-gsm.c b/libnm-util/nm-setting-gsm.c index d9f80079de..3a31932755 100644 --- a/libnm-util/nm-setting-gsm.c +++ b/libnm-util/nm-setting-gsm.c @@ -282,7 +282,7 @@ verify (NMSetting *setting, GSList *all_settings, GError **error) NM_SETTING_GSM_ERROR, NM_SETTING_GSM_ERROR_INVALID_PROPERTY, _("property is empty")); - g_prefix_error (error, "%s: ", NM_SETTING_GSM_NUMBER); + g_prefix_error (error, "%s.%s: ", NM_SETTING_GSM_SETTING_NAME, NM_SETTING_GSM_NUMBER); return FALSE; } @@ -296,7 +296,7 @@ verify (NMSetting *setting, GSList *all_settings, GError **error) NM_SETTING_GSM_ERROR_INVALID_PROPERTY, _("property value '%s' is empty or too long (>64)"), priv->apn); - g_prefix_error (error, "%s: ", NM_SETTING_GSM_APN); + g_prefix_error (error, "%s.%s: ", NM_SETTING_GSM_SETTING_NAME, NM_SETTING_GSM_APN); return FALSE; } @@ -328,7 +328,7 @@ verify (NMSetting *setting, GSList *all_settings, GError **error) NM_SETTING_GSM_ERROR_INVALID_PROPERTY, _("'%s' contains invalid char(s) (use [A-Za-z._-])"), priv->apn); - g_prefix_error (error, "%s: ", NM_SETTING_GSM_APN); + g_prefix_error (error, "%s.%s: ", NM_SETTING_GSM_SETTING_NAME, NM_SETTING_GSM_APN); return FALSE; } } @@ -339,7 +339,7 @@ verify (NMSetting *setting, GSList *all_settings, GError **error) NM_SETTING_GSM_ERROR, NM_SETTING_GSM_ERROR_INVALID_PROPERTY, _("property is empty")); - g_prefix_error (error, "%s: ", NM_SETTING_GSM_USERNAME); + g_prefix_error (error, "%s.%s: ", NM_SETTING_GSM_SETTING_NAME, NM_SETTING_GSM_USERNAME); return FALSE; } @@ -348,7 +348,7 @@ verify (NMSetting *setting, GSList *all_settings, GError **error) NM_SETTING_GSM_ERROR, NM_SETTING_GSM_ERROR_INVALID_PROPERTY, _("property is empty")); - g_prefix_error (error, "%s: ", NM_SETTING_GSM_USERNAME); + g_prefix_error (error, "%s.%s: ", NM_SETTING_GSM_SETTING_NAME, NM_SETTING_GSM_USERNAME); return FALSE; } @@ -363,7 +363,7 @@ verify (NMSetting *setting, GSList *all_settings, GError **error) NM_SETTING_GSM_ERROR_INVALID_PROPERTY, _("'%s' length is invalid (should be 5 or 6 digits)"), priv->network_id); - g_prefix_error (error, "%s: ", NM_SETTING_GSM_NETWORK_ID); + g_prefix_error (error, "%s.%s: ", NM_SETTING_GSM_SETTING_NAME, NM_SETTING_GSM_NETWORK_ID); return FALSE; } @@ -374,7 +374,7 @@ verify (NMSetting *setting, GSList *all_settings, GError **error) NM_SETTING_GSM_ERROR_INVALID_PROPERTY, _("'%s' is not a number"), priv->network_id); - g_prefix_error (error, "%s: ", NM_SETTING_GSM_NETWORK_ID); + g_prefix_error (error, "%s.%s: ", NM_SETTING_GSM_SETTING_NAME, NM_SETTING_GSM_NETWORK_ID); return FALSE; } } |