Browse Source

chore: Log error stack in rollup.watch

version-14
Faris Ansari 5 years ago
parent
commit
14b2905e63
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      rollup/watch.js

+ 5
- 1
rollup/watch.js View File

@@ -77,7 +77,11 @@ function log_css_change({output}) {

function log_error(error) {
log(chalk.yellow('Error in: ' + error.id));
log(chalk.red(error.toString()));
if (error.stack) {
log(chalk.red(error.stack));
} else {
log(chalk.red(error.toString()));
}

if (error.frame) {
log(chalk.red(error.frame));


Loading…
Cancel
Save