From 773794d3244d0863f22176ede07158d031378929 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 13 Jul 2017 00:14:08 +0200 Subject: [PATCH] Absolute paths can't be used with path.join, so replace it with path.resolve --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index eb07a07..05f1747 100755 --- a/server.js +++ b/server.js @@ -5,7 +5,7 @@ const config = require("./config.json"); 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 expressWs = require("express-ws");