No error info available in caught exception (in Template script)

When using <% script %> inside a Template, when an exception is caught via try/catch, the error object is an empty object {}.

Makes it rather impossible to debug :worried: