mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
Revert "libnm: don't assert for success of g_dbus_error_register_error()"
Now that unit tests no longer dynamically link against libnm/libnm.la,
and statically against the same code, we can enable this assertion
again.
This reverts commit 7a0e347b38
.
This commit is contained in:
parent
6b7264e4aa
commit
aff1d66b81
|
@ -49,7 +49,8 @@ register_error_domain (GQuark domain,
|
|||
nm_assert (e && e->value_nick && !strchr (e->value_nick, '-'));
|
||||
|
||||
nm_sprintf_buf (error_name, "%s.%s", interface, e->value_nick);
|
||||
g_dbus_error_register_error (domain, e->value, error_name);
|
||||
if (!g_dbus_error_register_error (domain, e->value, error_name))
|
||||
nm_assert_not_reached ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue