Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Feb 14, 2020
1 parent 4ed8cb3 commit 864fbee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,10 +509,12 @@ export async function cli(args: string[]) {

spinner.start();
const startTime = Date.now();
const result = await install(installTargets, {hasBrowserlistConfig, isExplicit}, config).catch((err) => {
err.loc && console.log('\n' + chalk.red.bold(`✘ ${err.loc.file}`));
throw err;
});
const result = await install(installTargets, {hasBrowserlistConfig, isExplicit}, config).catch(
err => {
err.loc && console.log('\n' + chalk.red.bold(`✘ ${err.loc.file}`));
throw err;
},
);

if (result) {
spinner.succeed(
Expand Down

0 comments on commit 864fbee

Please sign in to comment.