mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 08:16:24 +01:00
gdbusmessage: Fix swapped signatures in error messages
Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #2081
This commit is contained in:
parent
b4d6849c83
commit
8f938ebe27
@ -2786,7 +2786,7 @@ g_dbus_message_to_blob (GDBusMessage *message,
|
|||||||
G_IO_ERROR,
|
G_IO_ERROR,
|
||||||
G_IO_ERROR_INVALID_ARGUMENT,
|
G_IO_ERROR_INVALID_ARGUMENT,
|
||||||
_("Message body has signature “%s” but there is no signature header"),
|
_("Message body has signature “%s” but there is no signature header"),
|
||||||
signature_str);
|
g_variant_get_type_string (message->body));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
|
tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
|
||||||
@ -2796,7 +2796,7 @@ g_dbus_message_to_blob (GDBusMessage *message,
|
|||||||
G_IO_ERROR,
|
G_IO_ERROR,
|
||||||
G_IO_ERROR_INVALID_ARGUMENT,
|
G_IO_ERROR_INVALID_ARGUMENT,
|
||||||
_("Message body has type signature “%s” but signature in the header field is “%s”"),
|
_("Message body has type signature “%s” but signature in the header field is “%s”"),
|
||||||
tupled_signature_str, g_variant_get_type_string (message->body));
|
g_variant_get_type_string (message->body), tupled_signature_str);
|
||||||
g_free (tupled_signature_str);
|
g_free (tupled_signature_str);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user