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