Skip to content

Commit b58b980

Browse files
committed
Fix error messages
1 parent 73a564b commit b58b980

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function run(str, opts, isWatch) {
4747
if (!opts.watch) process.exit(0);
4848
})
4949
.catch(err => {
50-
process.stderr.write(String(err) + '\n');
50+
process.stderr.write(String(err && err.message || err) + '\n');
5151
process.exit(err.code || 1);
5252
});
5353
}

0 commit comments

Comments
 (0)