More errs
This commit is contained in:
		
							parent
							
								
									cf3d7d2661
								
							
						
					
					
						commit
						e2bbdd234f
					
				| @ -38,6 +38,7 @@ function runPythonTotal() { | |||||||
|         process.stdout.write('Python finished executing'); |         process.stdout.write('Python finished executing'); | ||||||
|     }); |     }); | ||||||
| } | } | ||||||
|  | 
 | ||||||
| function runPython() { | function runPython() { | ||||||
|     process.stdout.write('Requested to run python'); |     process.stdout.write('Requested to run python'); | ||||||
|     if (pythonRunning) { |     if (pythonRunning) { | ||||||
| @ -316,6 +317,7 @@ function startServer() { | |||||||
|             bcrypt.hash(req.body.password, 10, function(err, hash) { |             bcrypt.hash(req.body.password, 10, function(err, hash) { | ||||||
| 
 | 
 | ||||||
|                 if (err != null) { |                 if (err != null) { | ||||||
|  |                     console.log(err); | ||||||
|                     res.render('error', {message: "Couldn't hash password"}); |                     res.render('error', {message: "Couldn't hash password"}); | ||||||
|                     return; |                     return; | ||||||
|                 } |                 } | ||||||
| @ -326,6 +328,7 @@ function startServer() { | |||||||
|                 fs.writeFile(pathtools.join(path, hashPath), hash, (err) => { |                 fs.writeFile(pathtools.join(path, hashPath), hash, (err) => { | ||||||
| 
 | 
 | ||||||
|                     if (err != null) { |                     if (err != null) { | ||||||
|  |                         console.log(err); | ||||||
|                         res.render('error', {message: "Couldn't save hashed password"}); |                         res.render('error', {message: "Couldn't save hashed password"}); | ||||||
|                         return; |                         return; | ||||||
|                     } |                     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user