port-probe: properly handle Core errors

Fixes compilation of the Port Probe object.
This commit is contained in:
Aleksander Morgado
2012-03-15 14:14:20 +01:00
parent 963eb873e1
commit c112e19896
+6 -2
View File
@@ -19,6 +19,10 @@
#include <stdlib.h>
#include <string.h>
#include <ModemManager.h>
#include <mm-errors-types.h>
#include "mm-port-probe.h"
#include "mm-errors.h"
#include "mm-log.h"
@@ -238,7 +242,7 @@ serial_probe_qcdm (MMPortProbe *self)
FALSE,
FALSE,
g_error_new (MM_CORE_ERROR,
MM_CORE_ERROR_INVALID,
MM_CORE_ERROR_FAILED,
"(%s) Couldn't create QCDM port",
self->priv->name));
return FALSE;
@@ -631,7 +635,7 @@ serial_open_at (MMPortProbe *self)
FALSE,
FALSE,
g_error_new (MM_CORE_ERROR,
MM_CORE_ERROR_INVALID,
MM_CORE_ERROR_FAILED,
"(%s) couldn't create AT port",
self->priv->name));
return FALSE;