log error boundaries properly in the console

This commit is contained in:
Matthew Hodgson
2026-05-11 22:36:19 +00:00
parent dd9b961546
commit 8d7ceeec93

View File

@@ -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: