polish(core): better styling for error screens (#8736)

Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
Tanner Dolby 2023-03-09 08:13:19 -07:00 committed by GitHub
parent e21591c073
commit 7961c5b8d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 52 additions and 12 deletions

View file

@ -14,7 +14,7 @@ export default function ErrorBoundaryTestButton({
}): JSX.Element {
const [state, setState] = useState(false);
if (state) {
throw new Error('Boom!');
throw new Error('Boom!\nSomething bad happened, but you can try again!');
}
return (
<button type="button" onClick={() => setState(true)}>