mirror of
https://github.com/denoland/deno.git
synced 2025-03-04 01:44:26 -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);
|
setCORS(response);
|
||||||
}
|
}
|
||||||
serverLog(req, 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