Skip to content

Commit 70ca673

Browse files
authored
ensure the CLI in watch mode keeps running when on error (#4693)
1 parent 418d223 commit 70ca673

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cli.js

+7
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,13 @@ async function build() {
705705
let end = process.hrtime.bigint()
706706
console.error('Done in', (end - start) / BigInt(1e6) + 'ms.')
707707
})
708+
.catch((err) => {
709+
if (err.name === 'CssSyntaxError') {
710+
console.error(err.toString())
711+
} else {
712+
console.error(err)
713+
}
714+
})
708715
}
709716

710717
let css = input

0 commit comments

Comments
 (0)