Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit 1b8881a

Browse files
committed
fix: default severity to error
1 parent 5e3f03d commit 1b8881a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function displayError(err: CLIError) {
6868
}
6969

7070
function render(): string {
71-
const {severity} = err['cli-ux']
71+
const severity = (err['cli-ux'] && err['cli-ux'].severity) || 'error'
7272
const msg = [
7373
_.upperFirst(severity === 'warn' ? 'warning' : severity),
7474
': ',

0 commit comments

Comments
 (0)