Gio.DBusError.strip_remote_error

function strip_remote_error(error: GLib.Error): Boolean {
    // Gjs wrapper for g_dbus_error_strip_remote_error()
}
  

Looks for extra information in the error message used to recover the D-Bus error name and strips it if found. If stripped, the message field in error will correspond exactly to what was received on the wire.

This is typically used when presenting errors to the end user.

Since 2.26

error

A GLib.Error.

Returns

true if information was stripped, false otherwise.