mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 20:10:10 +01: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue