diff options
author | Christian Kellner <christian@kellner.me> | 2018-04-19 14:18:13 +0200 |
---|---|---|
committer | Christian Kellner <christian@kellner.me> | 2018-04-20 11:36:37 +0200 |
commit | 874a91968f93304d9c1a98e76ecb01ea06db43a4 (patch) | |
tree | 9fe91e9201335ea767487a3e3bd71054062edd0e | |
parent | 0963ccddba8050f4caa6dcb967ff4884d54c702b (diff) | |
download | gnome-shell-874a91968f93304d9c1a98e76ecb01ea06db43a4.tar.gz |
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.
-rw-r--r-- | js/ui/status/thunderbolt.js | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |