diff options
Diffstat (limited to 'http/file_server.ts')
| -rwxr-xr-x | http/file_server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/file_server.ts b/http/file_server.ts index 659e9ba56..83de37364 100755 --- a/http/file_server.ts +++ b/http/file_server.ts @@ -188,7 +188,7 @@ async function serveDir( async function serveFallback(req: ServerRequest, e: Error): Promise<Response> { if ( e instanceof Deno.DenoError && - (e as Deno.DenoError<any>).kind === ErrorKind.NotFound + (e as Deno.DenoError<Deno.ErrorKind.NotFound>).kind === ErrorKind.NotFound ) { return { status: 404, |
