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 = '';
|
returnValue = '';
|
||||||
success = true;
|
success = true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
returnValue = JSON.stringify(e);
|
returnValue = '' + e;
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
return [success, returnValue];
|
return [success, returnValue];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user