mirror of
https://github.com/vector-im/element-call.git
synced 2026-06-30 18:02:56 +00:00
log error boundaries properly in the console
This commit is contained in:
@@ -54,7 +54,10 @@ const ErrorPage: FC<ErrorPageProps> = ({
|
||||
widget,
|
||||
}: ErrorPageProps): ReactElement => {
|
||||
const { t } = useTranslation();
|
||||
logger.error("Error boundary caught:", error);
|
||||
logger.error(
|
||||
`Error boundary caught: name=${error?.name} message=${error?.message} category=${error?.category}`,
|
||||
error,
|
||||
);
|
||||
let icon: ComponentType<SVGAttributes<SVGElement>>;
|
||||
switch (error.category) {
|
||||
case ErrorCategory.CONFIGURATION_ISSUE:
|
||||
|
||||
Reference in New Issue
Block a user