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:20:20 +0200
commitbbee2fe0544748a96152ae2d5ecd30f6f418e58c (patch)
tree0bc1fa27d4c92f517346036a1c3d5f3826eade9c
parentc2936b200342362e645bc09c84a7a265a69db382 (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 125d3048..d5145e2f 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;
}
@@ -561,9 +560,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;
}