mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 18:36:17 +01:00
Merge branch 'mcatanzaro/gdbus-error' into 'master'
gdbus: Improve error when well-known name is unowned See merge request GNOME/glib!316
This commit is contained in:
commit
54074a3187
@ -2723,7 +2723,8 @@ g_dbus_proxy_call_internal (GDBusProxy *proxy,
|
||||
g_task_return_new_error (task,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_FAILED,
|
||||
_("Cannot invoke method; proxy is for a well-known name without an owner and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag"));
|
||||
_("Cannot invoke method; proxy is for the well-known name %s without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag"),
|
||||
proxy->priv->name);
|
||||
g_object_unref (task);
|
||||
}
|
||||
G_UNLOCK (properties_lock);
|
||||
@ -2854,10 +2855,11 @@ g_dbus_proxy_call_sync_internal (GDBusProxy *proxy,
|
||||
destination = g_strdup (get_destination_for_call (proxy));
|
||||
if (destination == NULL)
|
||||
{
|
||||
g_set_error_literal (error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_FAILED,
|
||||
_("Cannot invoke method; proxy is for a well-known name without an owner and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag"));
|
||||
g_set_error (error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_FAILED,
|
||||
_("Cannot invoke method; proxy is for the well-known name %s without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag"),
|
||||
proxy->priv->name);
|
||||
ret = NULL;
|
||||
G_UNLOCK (properties_lock);
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user