From c314aefee4aea31ab0fb6d58593517a77b505ac3 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Wed, 2 May 2018 10:04:11 -0700 Subject: [PATCH] fix: error wrapping --- src/errors/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errors/cli.ts b/src/errors/cli.ts index d81cf66..89a5034 100644 --- a/src/errors/cli.ts +++ b/src/errors/cli.ts @@ -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)