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

Commit c314aef

Browse files
committed
fix: error wrapping
1 parent 32258ba commit c314aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/errors/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class CLIError extends Error {
3636
let indent: typeof Indent = require('indent-string')
3737

3838
let output = `${this.name}: ${this.message}`
39-
output = wrap(output, require('../screen').errtermwidth, {trim: false, hard: true} as any)
39+
output = wrap(output, require('../screen').errtermwidth - 6, {trim: false, hard: true} as any)
4040
output = indent(output, 3)
4141
output = indent(output, 1, {indent: this.bang, includeEmptyLines: true} as any)
4242
output = indent(output, 1)

0 commit comments

Comments
 (0)