fix syntax error, and actually show error if minification fails

This commit is contained in:
barisusakli
2016-01-27 20:48:10 +02:00
parent 1a87767c2c
commit c2e1426e57
2 changed files with 3 additions and 2 deletions

View File

@@ -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';
}

View File

@@ -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);
}