aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-12 12:20:20 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-07-12 12:23:50 +0200
commit14dec9f060c56b8bf064a80f09e272aff862edfb (patch)
treeb41eb611c83aeb470ff1896c4c9588a2cc858ad5
parent08699edbe7da24163b30d2113b3caaf40fcde01c (diff)
huawei: don't set the GError if already set
Just prefix the existing error instead.
-rw-r--r--plugins/mm-modem-huawei-gsm.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/mm-modem-huawei-gsm.c b/plugins/mm-modem-huawei-gsm.c
index b5f57efc..bdd2e9a9 100644
--- a/plugins/mm-modem-huawei-gsm.c
+++ b/plugins/mm-modem-huawei-gsm.c
@@ -461,9 +461,8 @@ get_act_request_done (MMAtSerialPort *port,
}
if (!g_regex_match_full (r, response->str, response->len, 0, 0, &match_info, &info->error)) {
- g_set_error_literal (&info->error,
- MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
- "Could not parse ^SYSINFO results.");
+ g_prefix_error (&info->error,
+ "Could not parse ^SYSINFO results: ");
goto done;
}
@@ -569,9 +568,8 @@ send_huawei_cpin_done (MMAtSerialPort *port,
}
if (!g_regex_match_full (r, response->str, response->len, 0, 0, &match_info, &info->error)) {
- g_set_error_literal (&info->error,
- MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL,
- "Could not parse ^CPIN results (match failed).");
+ g_prefix_error (&info->error,
+ "Could not parse ^CPIN results (match failed): ");
goto done;
}