Skip to content

Commit ecfbe37

Browse files
committed
style(server): use tagged handler object for static file errors
1 parent 39ce7fa commit ecfbe37

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎apps/server/src/http.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,10 @@ const handleStaticAndDevRequest = Effect.fn("handleStaticAndDevRequest")(
618618
contentLength: Number(fileInfo.size),
619619
});
620620
},
621-
Effect.catchTag("PlatformError", () =>
622-
Effect.succeed(HttpServerResponse.text("Internal Server Error", { status: 500 })),
623-
),
621+
Effect.catchTags({
622+
PlatformError: () =>
623+
Effect.succeed(HttpServerResponse.text("Internal Server Error", { status: 500 })),
624+
}),
624625
);
625626

626627
// Read the installed build's manifest once. Unknown files use revalidation.

0 commit comments

Comments
 (0)