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:
parent
04e2072e2c
commit
e12bf8daed
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user