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.
This commit is contained in:
Jasper St. Pierre 2013-11-13 13:20:08 -05:00
parent 04e2072e2c
commit e12bf8daed

View File

@ -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];