mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	Handle callback errors
This commit is contained in:
		| @@ -170,6 +170,10 @@ module.exports = function(Meta) { | ||||
| 		winston.verbose('[meta/css] Reading stylesheet ' + filePath.split('/').pop() + ' from file'); | ||||
|  | ||||
| 		fs.readFile(filePath, function(err, file) { | ||||
| 			if (err) { | ||||
| 				return callback(err); | ||||
| 			} | ||||
|  | ||||
| 			Meta.css[filename] = file; | ||||
| 			callback(); | ||||
| 		}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user