mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	fix: #7351, display less errors with location and error message
This commit is contained in:
		| @@ -218,7 +218,7 @@ exports.build = function (targets, options, callback) { | |||||||
| 		}, | 		}, | ||||||
| 	], function (err) { | 	], function (err) { | ||||||
| 		if (err) { | 		if (err) { | ||||||
| 			winston.error('[build] Encountered error during build step\n' + err.stack ? err.stack : err); | 			winston.error('[build] Encountered error during build step\n' + (err.stack ? err.stack : err)); | ||||||
| 			return callback(err); | 			return callback(err); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -271,7 +271,8 @@ function buildCSS(data, callback) { | |||||||
| 		javascriptEnabled: true, | 		javascriptEnabled: true, | ||||||
| 	}, function (err, lessOutput) { | 	}, function (err, lessOutput) { | ||||||
| 		if (err) { | 		if (err) { | ||||||
| 			return callback(err); | 			// display less parser errors properly | ||||||
|  | 			return callback(new Error(String(err))); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		postcss(data.minify ? [ | 		postcss(data.minify ? [ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user