gdbus-codegen: Automatically strip remote errors in generated code
Submitted by Matthew Barnes
Assigned to David Zeuthen
Link to original bug (#697819)
Description
Maybe I'm missing the use case for keeping the extra GDBus gunk around in GError messages, but I would think at least code generated by the gdbus-codegen tool would strip that stuff out automatically.
Currently, apps have to remember to call g_dbus_error_strip_remote_error() at pretty much any place where a GError message is displayed, lest users see messages like:
GDBus.Error:org.gnome.OnlineAccounts.Error.NotAuthorized: No credentials found in the keyring
I can maybe see keeping the remote error info around when using the GDBus APIs directly, but surely apps shouldn't have to deal with that in generated convenience APIs, no?
Version: 2.36.x