1
mirror of https://github.com/thepeacockproject/Peacock synced 2025-02-23 03:35:25 +01:00

Added additional reason to detect IIS as being the issue of an uncaught exception (#11)

This commit is contained in:
Lennard Fonteijn 2022-11-10 22:28:23 +01:00 committed by GitHub
parent 9affb237e3
commit 84a00e8d83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,7 @@ const port = process.env.PORT || 80
function uncaught(error: Error): void {
if (
(error.message || "").includes("EADDRINUSE") ||
(error.message || "").includes("EACCES") ||
(error.stack || "").includes("EADDRINUSE")
) {
log(LogLevel.ERROR, `Failed to use the server on ${host}:${port}!`)