mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-04 20:07:36 +00:00
tests/dbus: Check for error early
This gives a detailed error messages whereas checking if `proxy` is `NULL` tells us only that on error.
This commit is contained in:
parent
8a4a7c6131
commit
ca4e77a8b0
1 changed files with 1 additions and 1 deletions
|
@ -31,8 +31,8 @@ find_pid_by_bus_name (const char *name)
|
|||
g_autoptr (GVariant) ret = NULL;
|
||||
guint32 pid;
|
||||
|
||||
g_assert_nonnull (proxy);
|
||||
g_assert_no_error (error);
|
||||
g_assert_nonnull (proxy);
|
||||
|
||||
ret = g_dbus_proxy_call_sync (proxy,
|
||||
"GetConnectionUnixProcessID",
|
||||
|
|
Loading…
Reference in a new issue