[network-manager-applet/th/validation-error-bgo754832: 7/13] fixup! c-e: 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: 7/13] fixup! c-e: forward the validation error to print more sensible error message to stdout
- Date: Fri, 11 Sep 2015 12:16:09 +0000 (UTC)
commit e9104926074822b45c03a026079fa8b77db7885a
Author: Thomas Haller <thaller redhat com>
Date: Fri Sep 11 09:14:54 2015 +0200
fixup! c-e: forward the validation error to print more sensible error message to stdout
src/connection-editor/ce-page.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/ce-page.c b/src/connection-editor/ce-page.c
index b8aefbd..e5bdee8 100644
--- a/src/connection-editor/ce-page.c
+++ b/src/connection-editor/ce-page.c
@@ -130,7 +130,7 @@ ce_page_validate (CEPage *self, NMConnection *connection, GError **error)
if (CE_PAGE_GET_CLASS (self)->ce_page_validate_v) {
if (!CE_PAGE_GET_CLASS (self)->ce_page_validate_v (self, connection, error)) {
- if (error && !error)
+ if (error && !*error)
g_set_error_literal (error, NMA_ERROR, NMA_ERROR_GENERIC, _("unspecified
error"));
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]