Use dbus_set_error_from_message() to check for an error
authorРуслан Ижбулатов <lrn1986@gmail.com>
Thu, 23 Jun 2016 12:26:45 +0000 (12:26 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 30 Jun 2016 12:52:44 +0000 (13:52 +0100)
commite0f26388f7536f0d5f618194469826c2bad9401b
treebb0995fa3b5e47274df073cd52e672bd265b4f43
parent07af048dd225b3f4ced28537470d8eb237fa3828
Use dbus_set_error_from_message() to check for an error

Do not rely on dbus_message_get_args() to turn an ERROR message
into DBusError.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=96653
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
test/dbus-daemon.c