Javascript: unhandled error in js file has missing error information

airsickness

Posted on
Jun 09 2016

Just testing the product. If i perform a throw new Error("test"); within script tags on my html file i get line numbers and the error description reported. If i move this throw to a script file alongside the html eg, script.js the error is reported however no error description is specified and no line number.

Just interested to see if we can have unhandled js errors reported with relevant information (just incase my intentional error handling doesn't get everything).


airsickness

Posted on
Jun 09 2016

disregard, having better results using V1 api ;) no line number but getting the actual error desc


Alex

Posted on
Jun 09 2016

Hi there,

V1 and V2 should provide the same functionality with regarding to error handling, with V2 having the advantage of being able to track errors which occur before the raygun4js script has loaded.

I'm curious as to why your test exception isn't being reported with line numbers. If you want could you contact us with the App using the "Feedback" button with your initialization and test script and we can take a look.

Thanks,
Alex


Reply