export function captureError(e: unknown) {
if (e instanceof Error) {
console.error('Captured unhandled error:', e, '\nStack:', e.stack);
} else {
console.error('Captured unhandled error (non-Error):', e);
}
}
export function captureError(e: unknown) {
if (e instanceof Error) {
console.error('Captured unhandled error:', e, '\nStack:', e.stack);
} else {
console.error('Captured unhandled error (non-Error):', e);
}
}