Errors from javascript parsing will now stop the build with corresponding error and correct line output.

Previously the error exception was catched and only partially printed with no line number.