Skip to content

Commit

Permalink
feat: log failed commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ZauberNerd committed Feb 13, 2019
1 parent 6e36500 commit cfa2fd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ console.log(
);

if (failingCommands.length) {
console.log(
'[canarist] failed commands: %O',
failingCommands.map(
({ directory, command }) => `"${command}" in ${directory}`
)
);
console.error(
'[canarist] ERROR! Some tests failed, see above for more details or set environment variable "DEBUG=canarist" and run again'
);
Expand Down

0 comments on commit cfa2fd2

Please sign in to comment.