]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
_dbus_append_address_from_socket: Correct misleading error message
authorSimon McVittie <smcv@collabora.com>
Thu, 8 Mar 2018 13:26:53 +0000 (13:26 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 9 Mar 2018 12:25:36 +0000 (12:25 +0000)
If what actually failed was reading the address from the socket,
we might as well say so.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61922

dbus/dbus-sysdeps-unix.c

index 675e95adda257985166bff0fa6d9936c19d7844d..beeb34ee096f193876cdd8e0da06787c7d4c2c1f 100644 (file)
@@ -4742,7 +4742,7 @@ _dbus_append_address_from_socket (DBusSocket  fd,
  err:
   dbus_set_error (error,
                   _dbus_error_from_errno (errno),
-                  "Failed to open socket: %s",
+                  "Failed to read address from socket: %s",
                   _dbus_strerror (errno));
   return FALSE;
 }