Skip to content

Commit 229da8d

Browse files
committed
improved filtering for devserver errors
1 parent 3f3ab82 commit 229da8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/http.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,12 @@ export function isBrowserPreviewable(file: string) {
234234

235235
export function maybeDisplaySocketError(e: unknown) {
236236
if (
237+
!(e instanceof Deno.errors.NotFound) &&
237238
!(e instanceof Deno.errors.BrokenPipe) &&
239+
!(e instanceof Deno.errors.NotConnected) &&
238240
!(e instanceof Deno.errors.ConnectionAborted) &&
239241
!(e instanceof Deno.errors.ConnectionReset) &&
242+
!(e instanceof Deno.errors.ConnectionRefused) &&
240243
!(e instanceof DOMException)
241244
) {
242245
logError(e as Error);

0 commit comments

Comments
 (0)