Skip to content

Commit

Permalink
feat: does not force error capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Jun 28, 2024
1 parent 0dc55a5 commit 52976dd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/helpers/stringify.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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 });
}

0 comments on commit 52976dd

Please sign in to comment.