Skip to content

Commit

Permalink
fix: print 400 status w/ red color
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Nov 22, 2018
1 parent 58191c4 commit d2fa2b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sirv-cli/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function toMS(arr) {
}

function toCode(code) {
let fn = code > 400 ? 'red' : code > 300 ? 'yellow' : 'green';
let fn = code >= 400 ? 'red' : code > 300 ? 'yellow' : 'green';
return colors[fn](code);
}

Expand Down

0 comments on commit d2fa2b7

Please sign in to comment.