mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
fix(std/http): Catch errors on file_server response.send (#6285)
This commit is contained in:
parent
d77a55a973
commit
6f3ad0f73a
1 changed files with 5 additions and 1 deletions
|
@ -353,7 +353,11 @@ function main(): void {
|
|||
setCORS(response);
|
||||
}
|
||||
serverLog(req, response!);
|
||||
req.respond(response!);
|
||||
try {
|
||||
await req.respond(response!);
|
||||
} catch (e) {
|
||||
console.error(e.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue