mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +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) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -271,7 +271,8 @@ function buildCSS(data, callback) {
|
||||
javascriptEnabled: true,
|
||||
}, function (err, lessOutput) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
// display less parser errors properly
|
||||
return callback(new Error(String(err)));
|
||||
}
|
||||
|
||||
postcss(data.minify ? [
|
||||
|
||||
Reference in New Issue
Block a user