Absolute paths can't be used with path.join, so replace it with path.resolve

master
Sven Slootweg 7 years ago
parent 0c7bd699eb
commit 773794d324

@ -5,7 +5,7 @@
const config = require("./config.json"); const config = require("./config.json");
const path = require("path"); const path = require("path");
const errorReporter = require("./src/error-reporting")(path.join(__dirname, config.errors.directory)); const errorReporter = require("./src/error-reporting")(path.resolve(__dirname, config.errors.directory));
const express = require("express"); const express = require("express");
const expressWs = require("express-ws"); const expressWs = require("express-ws");

Loading…
Cancel
Save