Revert handle and add logging

Server.ts isn't actually printing the error to the user anyways so there was no point in trying to fix it
This commit is contained in:
Thoronium
2023-02-26 03:02:52 -07:00
committed by GitHub
parent d49fdacf2a
commit 088d007816
2 changed files with 9 additions and 7 deletions

View File

@@ -40,11 +40,5 @@ export async function encryptionEnabled(path: string) {
return false
}
// Also check if null just in case
if (serverConf == null) {
console.log(`Server config at ${path} not found or invalid. Be sure to run the server at least once to generate it`)
return false
}
return serverConf.server.http.encryption.useEncryption
}