Skip to content

Commit

Permalink
feat(tools/yarn): add stdout to logs in case code>0 (#4706)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfrancois committed May 5, 2023
1 parent b96328a commit 928cc34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/neat-cows-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/scripts-yarn-workspace': minor
---

feat: make it logs stdout so you know what happens in case of error
2 changes: 1 addition & 1 deletion tools/scripts-yarn-workspace/src/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function run(cmd, opts = {}) {
if (code > 0) {
run.exitCode += 1;
console.error(`#### RUNNER: ${cmd.name} ${cmd.args.join(' ')} exit code ${code}`);
reject(stderr);
reject(`STDOUT: ${stdout}\n\nSTDERR: ${stderr}`);
return;
}
const end = Date.now();
Expand Down

0 comments on commit 928cc34

Please sign in to comment.