summaryrefslogtreecommitdiff
path: root/bus/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/connection.c')
-rw-r--r--bus/connection.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bus/connection.c b/bus/connection.c
index 519122c5..0df8a3a8 100644
--- a/bus/connection.c
+++ b/bus/connection.c
@@ -1619,7 +1619,12 @@ bus_pending_reply_send_no_reply (BusConnections *connections,
DBUS_ERROR_NO_REPLY))
goto out;
- errmsg = "Message did not receive a reply (timeout by message bus)";
+ /* If you change these messages, adjust test/dbus-daemon.c to match */
+ if (pending->will_send_reply == NULL)
+ errmsg = "Message recipient disconnected from message bus without replying";
+ else
+ errmsg = "Message did not receive a reply (timeout by message bus)";
+
dbus_message_iter_init_append (message, &iter);
if (!dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &errmsg))
goto out;