diff --git a/index.js b/index.js index 2124866..78d7f4e 100644 --- a/index.js +++ b/index.js @@ -77,7 +77,6 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e "Server": "RedBrick/" + version }); res.end("

RedBrick Error!

Reason: " + err.message + "

"); - } else { callServerError(500, "RedBrick/" + version, err); } @@ -110,7 +109,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e res.end("

RedBrick Error!

Reason: " + ex.message + "

"); return; } - args.push(fname); + args.push(__dirname + "/../../../temp/" + tempID); filename = args.shift(); } else { filename = (process.cwd() + (os.platform() == "win32" ? "\\" + fname.replace(/\//g, "\\") : "/" + fname)).replace(os.platform() == "win32" ? /\\+/ : /\/+/, os.platform() == "win32" ? "\\" : "/");