Is there a way to customize the Error file and line / column number for errors sent to Sentry with Raven? I’ve tried creating and sending custom errors, but it seems like it gathers it’s error info from elsewhere. For context, I’m trying to send an error captured through an Adobe ExtendScript JSX file and forward that back into JS space so I can send the error to Sentry, however I want it to still show the line number and file name from the JSX file from where it started.
Here’s what I’ve tried:
var err = new Error(); err.message = 'testMessage'; err.lineNumber = 55000; err.fileName = 'test.jsx'; Raven.captureException(err);
However when the error reaches Sentry, it defines line number as the line I created the new Error() on, and filename as the file I’m sending my error from. Anyone ran into this before?