[gnome-shell] thunderbolt: remove gdbus error prefix, if present



commit 874a91968f93304d9c1a98e76ecb01ea06db43a4
Author: Christian Kellner <christian kellner me>
Date:   Thu Apr 19 14:18:13 2018 +0200

    thunderbolt: remove gdbus error prefix, if present
    
    If we get an error during device enrollment, the message might be
    prefixed to indicate that the error came from the remote peer. We
    are presenting that message to the user so strip that prefix away
    if it was there.

 js/ui/status/thunderbolt.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/status/thunderbolt.js b/js/ui/status/thunderbolt.js
index ebd1c3eb1..f3236f21c 100644
--- a/js/ui/status/thunderbolt.js
+++ b/js/ui/status/thunderbolt.js
@@ -144,6 +144,7 @@ var Client = new Lang.Class({
        this._proxy.EnrollDeviceRemote(id, policy, AuthFlags.NONE,
                                        (res, error) => {
            if (error) {
+               Gio.DBusError.strip_remote_error(error);
                callback(null, error);
                return;
            }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]