mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
resolve: Simplify dbus_message error handling logic
This commit is contained in:
parent
6c5fe246a7
commit
f35a40c0c5
@ -131,11 +131,9 @@ static void systemd_link_generic_reply(struct l_dbus_message *message,
|
||||
const char *name;
|
||||
const char *text;
|
||||
|
||||
if (!l_dbus_message_is_error(message))
|
||||
if (!l_dbus_message_get_error(message, &name, &text))
|
||||
return;
|
||||
|
||||
l_dbus_message_get_error(message, &name, &text);
|
||||
|
||||
l_error("resolve-systemd: Failed to modify the %s entries. %s: %s",
|
||||
type, name, text);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user