Skip to content

Commit 9223630

Browse files
authored
fix: use exitCode & failed to determine failure of command (#44)
1 parent 197f730 commit 9223630

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ async function deployActions({run, functionsDir, timeout, memory}) {
4141
command += '--kind nodejs-lambda:10 --main handler';
4242
}
4343

44-
const {stderr, exitCode} = await run.command(command, {
44+
const {stderr, exitCode, failed} = await run.command(command, {
4545
reject: false,
4646
stdout: 'ignore'
4747
});
48-
const message = exitCode === 0 ? 'done.' : String(stderr);
48+
const message = exitCode === 0 && !failed ? 'done.' : String(stderr);
4949
console.log(`Deploying ${file}: ${message}`);
5050
})
5151
);

0 commit comments

Comments
 (0)