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

Commit 3668c90

Browse files
committed
fix: fix warning rendering
1 parent cc5e201 commit 3668c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ export function error(err: string | Error, options: {code?: string, exit?: numbe
2020

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

0 commit comments

Comments
 (0)