summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/gdbusutils.c2
-rw-r--r--common/gmountoperationdbus.c2
-rw-r--r--common/gmountsource.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/common/gdbusutils.c b/common/gdbusutils.c
index 710155ca..5e6351f4 100644
--- a/common/gdbusutils.c
+++ b/common/gdbusutils.c
@@ -1256,7 +1256,7 @@ _g_dbus_connection_call_async (DBusConnection *connection,
connection = dbus_bus_get (DBUS_BUS_SESSION, &derror);
if (connection == NULL)
{
- g_set_error (&data->io_error, G_IO_ERROR, G_IO_ERROR_INTERNAL_ERROR,
+ g_set_error (&data->io_error, G_IO_ERROR, G_IO_ERROR_FAILED,
"Can't open dbus connection");
g_idle_add (async_call_error_at_idle, data);
return;
diff --git a/common/gmountoperationdbus.c b/common/gmountoperationdbus.c
index 0e0694fa..f6aba91e 100644
--- a/common/gmountoperationdbus.c
+++ b/common/gmountoperationdbus.c
@@ -370,7 +370,7 @@ mount_op_done (GMountOperationDBus *op_dbus,
code, error_message);
else
{
- g_set_error (&error, G_IO_ERROR, G_IO_ERROR_INTERNAL_ERROR,
+ g_set_error (&error, G_IO_ERROR, G_IO_ERROR_FAILED,
"Can't parse mount error: %s", derror.message);
dbus_error_free (&derror);
}
diff --git a/common/gmountsource.c b/common/gmountsource.c
index c6bc2147..b5cec491 100644
--- a/common/gmountsource.c
+++ b/common/gmountsource.c
@@ -136,7 +136,7 @@ send_sync_and_unref (DBusMessage *message,
connection = dbus_bus_get (DBUS_BUS_SESSION, &derror);
if (connection == NULL)
{
- g_set_error (error, G_IO_ERROR, G_IO_ERROR_INTERNAL_ERROR,
+ g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
"Can't open dbus connection");
dbus_message_unref (message);
return NULL;