Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: fix warning rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 21, 2018
1 parent cc5e201 commit 3668c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export function error(err: string | Error, options: {code?: string, exit?: numbe

export function warn(input: string | Error) {
let err = new CLIError.Warn(input)
console.error(err.render ? err.render() : err.message)
console.error(err.render ? err.render() : `Warning: ${err.message}`)
if (config.errorLogger) config.errorLogger.log(err.stack)
}

0 comments on commit 3668c90

Please sign in to comment.