[network-manager-applet/th/validation-error-bgo754832] fixup! editor: forward the validation error to print more sensible error message to stdout
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/th/validation-error-bgo754832] fixup! editor: forward the validation error to print more sensible error message to stdout
- Date: Thu, 10 Sep 2015 13:31:50 +0000 (UTC)
commit fbbba32cdc35dcc73aa74bf696c8a07f0bbb5436
Author: Thomas Haller <thaller redhat com>
Date: Thu Sep 10 15:31:41 2015 +0200
fixup! editor: forward the validation error to print more sensible error message to stdout
src/connection-editor/page-ip6.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/connection-editor/page-ip6.c b/src/connection-editor/page-ip6.c
index ba49d29..439858a 100644
--- a/src/connection-editor/page-ip6.c
+++ b/src/connection-editor/page-ip6.c
@@ -1245,7 +1245,7 @@ ui_to_setting (CEPageIP6 *self, GError **error)
if ( !addr_str
|| !nm_utils_ipaddr_valid (AF_INET6, addr_str)
|| is_address_unspecified (addr_str)) {
- g_set_error (error, NMA_ERROR, NMA_ERROR_GENERIC, _("IPv6 address \"%s\" invalid"),
addr_str ? addr_str : addr_str);
+ g_set_error (error, NMA_ERROR, NMA_ERROR_GENERIC, _("IPv6 address \"%s\" invalid"),
addr_str ? addr_str : "");
g_free (addr_str);
g_free (prefix_str);
g_free (addr_gw_str);
@@ -1253,7 +1253,7 @@ ui_to_setting (CEPageIP6 *self, GError **error)
}
if (!is_prefix_valid (prefix_str, &prefix)) {
- g_set_error (error, NMA_ERROR, NMA_ERROR_GENERIC, _("IPv6 prefix \"%s\" invalid"),
prefix_str ? prefix_str : prefix_str);
+ g_set_error (error, NMA_ERROR, NMA_ERROR_GENERIC, _("IPv6 prefix \"%s\" invalid"),
prefix_str ? prefix_str : "");
g_free (addr_str);
g_free (prefix_str);
g_free (addr_gw_str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]