summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2007-09-13 12:26:32 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-13 12:26:32 +0000
commit855de8aa13dfae77d914288587b03f8302bddbb2 (patch)
tree90679f78556be6ffc8bfe3068d14fcc530057215 /common
parent865a5bf84655f95e575b14c0c8f4aa33c4b84c2e (diff)
downloadgvfs-855de8aa13dfae77d914288587b03f8302bddbb2.tar.gz
Remove G_IO_ERROR_INTERNAL_ERROR and replace with FAILED or more specific errors
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1174386775 +0100 svn path=/trunk/; revision=408
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;