From e12bf8daedacabcc8470a07682d1cbec08e1da6c Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 13 Nov 2013 13:20:08 -0500 Subject: [PATCH] shellDBus: Fix error message returned from Eval Annoyingly, `message` on errors are non-enumerable, which mean that JSON.stringify on the error will produce `{}`. Just cast it to a string for now. --- js/ui/shellDBus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 609b1c168..79ff46cba 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -119,7 +119,7 @@ const GnomeShell = new Lang.Class({ returnValue = ''; success = true; } catch (e) { - returnValue = JSON.stringify(e); + returnValue = '' + e; success = false; } return [success, returnValue];