Move syntax error description to notification body (#2404)

This commit is contained in:
Kirby Walls 2017-10-29 11:05:17 -07:00 committed by CHaBou
parent 40cb4d436d
commit c2839bacc7

View file

@ -14,7 +14,7 @@ const _syntaxValidation = function(cfg) {
try {
return new vm.Script(cfg, {filename: '.hyper.js', displayErrors: true});
} catch (err) {
notify(`Error loading config: ${err.name}, see DevTools for more info`);
notify('Error loading config:', `${err.name}, see DevTools for more info`);
//eslint-disable-next-line no-console
console.error('Error loading config:', err);
}