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

Commit ee56ab5

Browse files
committed
fix: make bang less bold
1 parent 5b505a3 commit ee56ab5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/errors/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ export class CLIError extends Error {
3838
let output = `${this.name}: ${this.message}`
3939
output = wrap(output, require('../screen').errtermwidth, {trim: false, hard: true} as any)
4040
output = indent(output, 3)
41-
output = indent(output, 1, this.bang)
41+
output = indent(output, 1, {indent: this.bang, includeEmptyLines: true} as any)
4242
output = indent(output, 1)
4343
return output
4444
}
4545

4646
protected get bang() {
4747
let red: typeof Chalk.red = ((s: string) => s) as any
4848
try {red = require('chalk').red} catch {}
49-
return red(process.platform === 'win32' ? '×' : '')
49+
return red(process.platform === 'win32' ? '»' : '')
5050
}
5151
}
5252

@@ -60,7 +60,7 @@ export namespace CLIError {
6060
protected get bang() {
6161
let yellow: typeof Chalk.yellow = ((s: string) => s) as any
6262
try {yellow = require('chalk').yellow} catch {}
63-
return yellow(process.platform === 'win32' ? '×' : '')
63+
return yellow(process.platform === 'win32' ? '»' : '')
6464
}
6565
}
6666
}

0 commit comments

Comments
 (0)