Skip to content

Commit

Permalink
ensure the CLI in watch mode keeps running when on error
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Jun 18, 2021
1 parent 418d223 commit e3c6885
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cli.js
Expand Up @@ -705,6 +705,15 @@ async function build() {
let end = process.hrtime.bigint()
console.error('Done in', (end - start) / BigInt(1e6) + 'ms.')
})
.catch((err) => {
if (typeof err === 'string') {
console.error(err)
} else if (err.name === 'CssSyntaxError') {
console.error(err.toString())
} else {
console.error(err)
}
})
}

let css = input
Expand Down

0 comments on commit e3c6885

Please sign in to comment.