This commit is contained in:
2025-12-12 21:39:48 +01:00
parent ddbd99b747
commit cae81b1088
49 changed files with 777 additions and 269 deletions

View File

@@ -52,12 +52,15 @@ export class ConsoleMonitor {
// Monitor uncaught exceptions
page.on('pageerror', (error: Error) => {
this.errors.push({
const errorObj: ConsoleError = {
type: 'pageerror',
message: error.message,
location: error.stack,
timestamp: new Date(),
});
};
if (error.stack) {
errorObj.location = error.stack;
}
this.errors.push(errorObj);
});
this.isMonitoring = true;