mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-20 14:25:07 +00:00
tidy up
This commit is contained in:
@@ -93,9 +93,8 @@ prog.command('dev')
|
|||||||
|
|
||||||
console.log(colors.bold().red(`✗ ${type}`));
|
console.log(colors.bold().red(`✗ ${type}`));
|
||||||
|
|
||||||
if (error.loc) {
|
if (error.loc && error.loc.file) {
|
||||||
let file = error.loc.file && `${path.relative(process.cwd(), error.loc.file)} (${error.loc.line}:${error.loc.column})`;
|
console.log(colors.bold(`${path.relative(process.cwd(), error.loc.file)} (${error.loc.line}:${error.loc.column})`));
|
||||||
if (file) console.log(colors.bold(file));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(colors.red(event.error.message));
|
console.log(colors.red(event.error.message));
|
||||||
|
|||||||
Reference in New Issue
Block a user