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; }