add log to error boudnary

This commit is contained in:
Timo K
2025-11-20 16:32:40 +01:00
parent 89a1bfac2d
commit a69a50d30c

View File

@@ -33,6 +33,7 @@ import {
import { FullScreenView } from "../FullScreenView.tsx";
import { ErrorView } from "../ErrorView.tsx";
import { type WidgetHelpers } from "../widget.ts";
import { logger } from "matrix-js-sdk/lib/logger";
export type CallErrorRecoveryAction = "reconnect"; // | "retry" ;
@@ -53,7 +54,7 @@ const ErrorPage: FC<ErrorPageProps> = ({
widget,
}: ErrorPageProps): ReactElement => {
const { t } = useTranslation();
logger.log("Error boundary caught:", error);
let icon: ComponentType<SVGAttributes<SVGElement>>;
switch (error.category) {
case ErrorCategory.CONFIGURATION_ISSUE: