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:
@@ -26,12 +26,10 @@ import {
|
||||
import type { BuildCache } from "../../build_cache.ts";
|
||||
import { BUILD_ID } from "../build_id.ts";
|
||||
import { DEV_ERROR_OVERLAY_URL } from "../../constants.ts";
|
||||
import {
|
||||
getCodeFrame,
|
||||
} from "../../dev/middlewares/error_overlay/code_frame.tsx";
|
||||
import * as colors from "@std/fmt/colors";
|
||||
import { escape as escapeHtml } from "@std/html";
|
||||
import { HttpError } from "../../error.ts";
|
||||
import { getCodeFrame } from "../../dev/middlewares/error_overlay/code_frame.tsx";
|
||||
|
||||
const enum OptionsType {
|
||||
ATTR = "attr",
|
||||
|
||||
Reference in New Issue
Block a user