mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 11:30:01 -04:00
More commenting and reformatting changes
This commit is contained in:
parent
1411d697b2
commit
46b93c3607
3 changed files with 12 additions and 12 deletions
|
@ -10,7 +10,7 @@ const config = Object.freeze(
|
|||
JSON.parse(await readFile(new URL("./src/config.json", import.meta.url)))
|
||||
),
|
||||
ecosystemConfig = Object.freeze(
|
||||
ecosystem.apps.find(app => app.name === "HolyUB") || apps[0]
|
||||
ecosystem.apps.find(app => app.name === "HolyUB") || ecosystem.apps[0]
|
||||
);
|
||||
|
||||
const serverUrl = (base => {
|
||||
|
@ -80,6 +80,7 @@ for (let i = 2; i < process.argv.length; i++)
|
|||
if (response === "Error") throw new Error("Server is unresponsive.");
|
||||
} catch (e) {
|
||||
// Check if this is the error thrown by the fetch request for an unused port.
|
||||
// Don't print the unused port error, since nothing has actually broken.
|
||||
if (e instanceof TypeError) clearTimeout(timeoutId);
|
||||
else console.error(e);
|
||||
await unlink(shutdown);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue