mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 16:00:29 +02:00
polish(core): better styling for error screens (#8736)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
e21591c073
commit
7961c5b8d5
7 changed files with 52 additions and 12 deletions
|
@ -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)}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue