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

Commit

Permalink
fix: fixed passing error to cli-ux
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 5, 2018
1 parent 95fa6fc commit 2389fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CLIError extends Error {

render() {
let cli
try { cli = require('cli-ux') } catch {}
try { cli = require('cli-ux').cli } catch {}
if (cli) return cli.error(this)
let red: typeof Chalk.red = ((s: string) => s) as any
try {red = require('chalk').red} catch {}
Expand Down

0 comments on commit 2389fe5

Please sign in to comment.