mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-24 04:13:02 +00:00
log error boundaries properly in the console
This commit is contained in:
1 parent
dd9b961546
commit
8d7ceeec93
1 file changed
+4
-1
@@ -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