From 52976dd9e6a4a6aa4996874f4b887fa690573b98 Mon Sep 17 00:00:00 2001 From: Rafa Mel Date: Fri, 28 Jun 2024 12:32:21 +0200 Subject: [PATCH] feat: does not force error capitalization --- src/helpers/stringify.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/helpers/stringify.ts b/src/helpers/stringify.ts index 9616492..3069726 100644 --- a/src/helpers/stringify.ts +++ b/src/helpers/stringify.ts @@ -1,6 +1,5 @@ import { splitBy } from 'cli-belt'; import { ensure } from 'errorish'; -import { into } from 'pipettes'; import { style } from '../utils/style'; import { constants } from '../constants'; @@ -19,9 +18,6 @@ export function stringifyArgvCommands(argv: string[]): string { } export function stringifyError(error: Error): string { - return into( - ensure(error, null, { normalize: true }).message, - (msg) => msg[0].toUpperCase() + msg.slice(1).toString(), - (msg) => style(msg, { bold: true }) - ); + const msg = ensure(error, null, { normalize: true }).message; + return style(msg, { bold: true }); }