Skip to content

Commit

Permalink
Merge pull request #86 from ianwremmel/issue/77-less-verbose-failures
Browse files Browse the repository at this point in the history
Issue/77 less verbose failures
  • Loading branch information
ianwremmel committed Apr 13, 2018
2 parents 603e390 + 8772d75 commit 8047322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ export async function apply(
await fn(packageName);
log(options, debug, afterEach(packageName));
} catch (err) {
errors.push(err);
if (options.failFast) {
errors.push(err);
log(options, debug, afterEach(packageName, err));
}
}
}
log(options, debug, after(packages, errors));

if (errors.length) {
console.error(errors);
errors.forEach((e) => console.error(e.toString()));
process.exit(1);
}
}
Expand Down

0 comments on commit 8047322

Please sign in to comment.