fix: error handling in fs routes (#2474)
Ran into an issue where we weren't responding with the correct status code and passed response headers. This was a bit of a rabbit hole and it was caused by us wrapping to more error handling middlewares than necessary.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useEffect } from "preact/hooks";
|
||||
import { useSignal } from "@preact/signals";
|
||||
|
||||
export function EscapeIsland(props: { str: string }) {
|
||||
export function EscapeIsland(_props: { str: string }) {
|
||||
const active = useSignal(false);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -225,7 +225,7 @@ Deno.test({
|
||||
|
||||
await withBrowserApp(app, async (page, address) => {
|
||||
let didError = false;
|
||||
page.addEventListener("pageerror", (ev) => {
|
||||
page.addEventListener("pageerror", () => {
|
||||
didError = true;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user