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:
parent
9affb237e3
commit
84a00e8d83
@ -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}!`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user