portal: Improve error message for invalid a11y own name

Include the non-matching name in the message for ease of debugging.
This commit is contained in:
Chris Williams
2025-01-01 12:00:12 -05:00
committed by Georges Basile Stavracas Neto
parent a160cbcb1f
commit a2691022b2

View File

@@ -963,7 +963,7 @@ handle_spawn (PortalFlatpak *object,
{
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,
G_DBUS_ERROR_INVALID_ARGS,
"Invalid sandbox a11y own name, doesn't match app id");
"Invalid sandbox a11y own name: '%s' doesn't match app id", sandbox_a11y_own_names[i]);
return G_DBUS_METHOD_INVOCATION_HANDLED;
}
}