mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-05 19:59:20 +00:00
log error boundaries properly in the console
This commit is contained in:
@@ -54,7 +54,10 @@ const ErrorPage: FC<ErrorPageProps> = ({
|
|||||||
widget,
|
widget,
|
||||||
}: ErrorPageProps): ReactElement => {
|
}: ErrorPageProps): ReactElement => {
|
||||||
const { t } = useTranslation();
|
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>>;
|
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