More errs
This commit is contained in:
parent
cf3d7d2661
commit
e2bbdd234f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue