Errors from javascript parsing will no longer end up as [success]

Previously the error exception was caught and only partially printed without a correct line number and the script completed with 0 errors, indicating a success.