Skip to content

Commit

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

let css = input
Expand Down

0 comments on commit 70ca673

Please sign in to comment.