bus_connections_setup_connection: If we can't set it up, log why
authorSimon McVittie <smcv@collabora.com>
Mon, 6 Nov 2017 16:16:31 +0000 (16:16 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 10 Nov 2017 16:22:20 +0000 (16:22 +0000)
commit1a29dc8544c6e5704f341203a5db47de54eaa17d
tree5fdf6915a1d8317a66d278bc9257aa03c90b7f5e
parent35238ed567a2f4328e9a5fa00985abf58f6a9000
bus_connections_setup_connection: If we can't set it up, log why

While reviewing fd.o#101354, Philip Withnall pointed out that if we
rejected a connection in the new code there, we didn't log why. It
turns out we didn't log that in the more normal code path either.
Redo the error handling so that failure to set up a connection
is logged.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103592
(cherry picked from commit 56847ae818e8c144b9c7a8102efd1c926ead2f62)
bus/bus.c
bus/connection.c