mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 19:41:16 +01:00
fix syntax error, and actually show error if minification fails
This commit is contained in:
@@ -86,7 +86,7 @@ define('notifications', ['sounds', 'translator', 'components'], function(sound,
|
||||
});
|
||||
};
|
||||
} else {
|
||||
payload.message: '[[notifications:you_have_unread_notifications]]';
|
||||
payload.message = '[[notifications:you_have_unread_notifications]]';
|
||||
payload.type = 'warning';
|
||||
}
|
||||
|
||||
|
||||
@@ -128,8 +128,9 @@ module.exports = function(Meta) {
|
||||
case 'error':
|
||||
winston.error('[meta/js] Could not compile ' + target + ': ' + message.payload.message);
|
||||
minifier.kill();
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
callback(new Error(message.payload.message));
|
||||
callback(new Error(message.payload));
|
||||
} else {
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user