Skip to content

Node.js based forum software built for the modern web

fix syntax error, and actually show error if minification fails

barisusaklic2e1426e5703
diff --git a/public/src/modules/notifications.js b/public/src/modules/notifications.js
index ee006cc3f9..de0fbca17c 100644
--- a/public/src/modules/notifications.js
+++ b/public/src/modules/notifications.js
@@ -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';
}
diff --git a/src/meta/js.js b/src/meta/js.js
index 9d4be56934..acd51c2e09 100644
--- a/src/meta/js.js
+++ b/src/meta/js.js
@@ -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);
}