Log errors to JS console from ErrorView to catch them in Unit tests

This commit is contained in:
Aurora Lahtela 2023-09-30 17:11:03 +03:00
parent 621e0b6f6e
commit 01d6f4df28

View File

@ -5,6 +5,7 @@ import {faBug} from "@fortawesome/free-solid-svg-icons";
import LoadIn from "../components/animation/LoadIn";
export const ErrorViewText = ({error}) => {
console.error(error);
return (
<>
<p>{error.message} {error.url && <a href={error.url}>{error.url}</a>}</p>