-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement better errors all over, new errors pages+refined logi…
…c, debounce watch
- Loading branch information
1 parent
09ac5dd
commit 522df77
Showing
26 changed files
with
811 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 6 additions & 48 deletions
54
integration/__fixtures__/static-site/src/routes/_throws_expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,20 @@ | ||
<!-- --> | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<script type="module" src="/@vite/client"></script> | ||
|
||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
|
||
<title>Error</title> | ||
</head> | ||
<body> | ||
<title>500: TypeError | Internal Server Error</title> | ||
<style> | ||
html { | ||
color-scheme: dark; | ||
color-scheme: light dark; | ||
font-size: 16px; | ||
line-height: 1.23rem; | ||
font-family: system-ui; | ||
} | ||
body { | ||
padding: 1rem; | ||
} | ||
|
||
pre { | ||
padding: 1rem; | ||
|
||
overflow-y: auto; | ||
} | ||
button { | ||
font-size: 2rem; | ||
} | ||
|
||
h1 { | ||
color: tomato; | ||
} | ||
</style> | ||
|
||
<main> | ||
<h1>😵 An error has occurred!</h1> | ||
<button id="reload">Reload</button> | ||
<!-- --> | ||
<hr /> | ||
|
||
<pre> | ||
Error: !!! OH NO !!! I AM A FAKE ERROR !!! | ||
at RouteModule.template (__REPLACED_FOR_TESTS__) | ||
at renderRouteTemplate (__REPLACED_FOR_TESTS__) | ||
at async middleware (__REPLACED_FOR_TESTS__) | ||
at async nodeHandler (__REPLACED_FOR_TESTS__)</pre | ||
> | ||
<!-- <pre>$ {e.name}</pre> --> | ||
<!-- <pre>$ {e.message}</pre> --> | ||
<!-- <pre>$ {e.cause}</pre> --> | ||
<hr /> | ||
</main> | ||
|
||
<script> | ||
reload.addEventListener("click", () => document.location.reload()); | ||
</script> | ||
<script type="module" src="/@vite/client"></script> | ||
</head> | ||
<body> | ||
<h1>500: TypeError | Internal Server Error</h1> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.