mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 05:38:41 -09:00
Move syntax error description to notification body (#2404)
This commit is contained in:
parent
40cb4d436d
commit
c2839bacc7
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ const _syntaxValidation = function(cfg) {
|
||||||
try {
|
try {
|
||||||
return new vm.Script(cfg, {filename: '.hyper.js', displayErrors: true});
|
return new vm.Script(cfg, {filename: '.hyper.js', displayErrors: true});
|
||||||
} catch (err) {
|
} 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
|
//eslint-disable-next-line no-console
|
||||||
console.error('Error loading config:', err);
|
console.error('Error loading config:', err);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue