Improved exception handling
The LS ScriptService should be able to catch every exception to produce an output that is readable from XWiki UI.
-
Investigate if there are any exceptions that could occur but don't return anything (iirc, HTTP exceptions are not caught for all methods yet) -
Fix them to return exceptions and include the message body in the return error message.