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

Commit

Permalink
fix: default severity to error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 28, 2018
1 parent 5e3f03d commit 1b8881a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function displayError(err: CLIError) {
}

function render(): string {
const {severity} = err['cli-ux']
const severity = (err['cli-ux'] && err['cli-ux'].severity) || 'error'
const msg = [
_.upperFirst(severity === 'warn' ? 'warning' : severity),
': ',
Expand Down

0 comments on commit 1b8881a

Please sign in to comment.