From 398555d74fd1d670115f49f6679d7bf5e9120ffc Mon Sep 17 00:00:00 2001 From: Adrian Szyndela Date: Thu, 1 Jun 2017 13:08:22 +0200 Subject: [PATCH] gkdbus: make error messages more consistent with libdbus Change-Id: I5b21152f84ccc43ae8d72fe83e9e6d32aba58002 --- gio/gkdbus.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gio/gkdbus.c b/gio/gkdbus.c index 6c9c051..26cd959 100755 --- a/gio/gkdbus.c +++ b/gio/gkdbus.c @@ -3549,6 +3549,11 @@ _g_kdbus_send (GKDBusWorker *worker, g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_LIMITS_EXCEEDED, "The size of the message is excessive, %s", info); } + else if (errno == EMLINK) + { + g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_LIMITS_EXCEEDED, + "The maximum number of pending replies per connection has been reached, %s", info); + } else if (errno == ECANCELED) { g_set_error (error, G_IO_ERROR, G_IO_ERROR_CANCELLED, -- 2.7.4