diff options
Diffstat (limited to 'src/plugins/ublox')
-rw-r--r-- | src/plugins/ublox/mm-modem-helpers-ublox.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/ublox/mm-modem-helpers-ublox.c b/src/plugins/ublox/mm-modem-helpers-ublox.c index ffb1374d..0fd1c5b0 100644 --- a/src/plugins/ublox/mm-modem-helpers-ublox.c +++ b/src/plugins/ublox/mm-modem-helpers-ublox.c @@ -1813,13 +1813,14 @@ mm_ublox_parse_urat_read_response (const gchar *response, } out: + if (inner_error) { + g_propagate_error (error, inner_error); + return FALSE; + } + if (allowed == MM_MODEM_MODE_NONE) { inner_error = g_error_new (MM_CORE_ERROR, MM_CORE_ERROR_FAILED, "Couldn't parse +URAT response: %s", response); - } - - if (inner_error) { - g_propagate_error (error, inner_error); return FALSE; } |