Bluesky app fork with some witchin' additions 💫

Send error boundary exceptions to Sentry (#2573)

authored by

Eric Bailey and committed by
GitHub
9835996d 89607d90

+2 -1
+2 -1
src/view/com/util/ErrorBoundary.tsx
··· 2 2 import {ErrorScreen} from './error/ErrorScreen' 3 3 import {CenteredView} from './Views' 4 4 import {t} from '@lingui/macro' 5 + import {logger} from '#/logger' 5 6 6 7 interface Props { 7 8 children?: ReactNode ··· 23 24 } 24 25 25 26 public componentDidCatch(error: Error, errorInfo: ErrorInfo) { 26 - console.error('Uncaught error:', error, errorInfo) 27 + logger.error(error, {errorInfo}) 27 28 } 28 29 29 30 public render() {