From e2bbdd234fdf3f8905e6f73533a3912f5ed8fe5f Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 28 Mar 2019 14:16:55 +0100 Subject: [PATCH] More errs --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index 7a0827b..133c430 100644 --- a/server.js +++ b/server.js @@ -38,6 +38,7 @@ function runPythonTotal() { process.stdout.write('Python finished executing'); }); } + function runPython() { process.stdout.write('Requested to run python'); if (pythonRunning) { @@ -316,6 +317,7 @@ function startServer() { bcrypt.hash(req.body.password, 10, function(err, hash) { if (err != null) { + console.log(err); res.render('error', {message: "Couldn't hash password"}); return; } @@ -326,6 +328,7 @@ function startServer() { fs.writeFile(pathtools.join(path, hashPath), hash, (err) => { if (err != null) { + console.log(err); res.render('error', {message: "Couldn't save hashed password"}); return; }