Deleted the ErrorBoundary component from the makerkit package and introduced new exception capture mechanisms for Baselime and Sentry monitoring providers. The code now captures all exceptions thrown within components and sends them to the configured monitoring provider, which in turn logs the errors for debugging purposes. Updated packages and environment variables accordingly to support this feature.
5 lines
158 B
TypeScript
5 lines
158 B
TypeScript
export function captureException(error: Error) {
|
|
console.info(`No yet defined...`);
|
|
return console.error(`Caught exception: ${JSON.stringify(error)}`);
|
|
}
|