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

Commit

Permalink
fix: error wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 2, 2018
1 parent 32258ba commit c314aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class CLIError extends Error {
let indent: typeof Indent = require('indent-string')

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

0 comments on commit c314aef

Please sign in to comment.