gkdbus: make error messages more consistent with libdbus 00/132200/3
authorAdrian Szyndela <adrian.s@samsung.com>
Thu, 1 Jun 2017 11:08:22 +0000 (13:08 +0200)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 2 Jun 2017 06:37:03 +0000 (06:37 +0000)
Change-Id: I5b21152f84ccc43ae8d72fe83e9e6d32aba58002

gio/gkdbus.c

index 6c9c051..26cd959 100755 (executable)
@@ -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,