Skip to content

Commit 9a16cc0

Browse files
uses stderr content to define error
1 parent 0531f1b commit 9a16cc0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

wrapper/dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4209,7 +4209,7 @@ async function checkStackQL () {
42094209
core.setOutput('stderr', stderr.contents);
42104210
core.setOutput('exitcode', exitCode.toString(10));
42114211

4212-
if (exitCode === 0 || exitCode === 2 || !stderr.contents) {
4212+
if ((exitCode === 0 || exitCode === 2) && !stderr.contents) {
42134213
// A exitCode of 0 is considered a success
42144214
// An exitCode of 2 may be returned when the '-detailed-exitcode' option
42154215
// is passed to plan. This denotes Success with non-empty

wrapper/stackql.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ async function checkStackQL () {
3131
ignoreReturnCode: true
3232
};
3333
const exitCode = await exec(pathToCLI, args, options);
34-
console.log(`StackQL exited with code ${exitCode}.`);
35-
console.log(`stdout: ${stdout.contents}`);
34+
core.debug(`StackQL exited with code ${exitCode}.`);
35+
core.debug(`stdout: ${stdout.contents}`);
3636
console.log(`stderr: ${stderr.contents}`);
37-
console.log(`exitcode: ${exitCode}`);
37+
core.debug(`exitcode: ${exitCode}`);
3838

3939
// Set outputs, result, exitcode, and stderr
4040
core.setOutput('stdout', stdout.contents);

0 commit comments

Comments
 (0)