fix(ghbot): general touchups to get it compiling

This commit is contained in:
zkldi
2022-09-28 22:57:11 +01:00
parent d03e17bffd
commit 66e41e9f2a
3 changed files with 8 additions and 3 deletions
+5 -2
View File
@@ -1,6 +1,9 @@
import "dotenv";
import { config } from "dotenv";
import p from "prudence";
// init dotenv
config();
function ParseEnvVars() {
const err = p(
process.env,
@@ -17,7 +20,7 @@ function ParseEnvVars() {
);
if (err) {
throw new Error(err.message);
throw new Error(`${err.keychain}: ${err.message}`);
}
return {
+2
View File
@@ -142,3 +142,5 @@ app.all("*", (req, res) =>
);
console.log(`Starting express server on port ${ProcessEnv.port}.`);
app.listen(ProcessEnv.port);