From 874a91968f93304d9c1a98e76ecb01ea06db43a4 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 19 Apr 2018 14:18:13 +0200 Subject: [PATCH] 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; }