More errs

This commit is contained in:
Thomas Forgione 2019-03-28 14:16:55 +01:00
parent cf3d7d2661
commit e2bbdd234f
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 3 additions and 0 deletions

View File

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