Skip to content

Commit 90b87a6

Browse files
uses stderr content to define error
1 parent 3958913 commit 90b87a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wrapper/stackql.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function checkStackQL () {
4141
core.setOutput('stderr', stderr.contents);
4242
core.setOutput('exitcode', exitCode.toString(10));
4343

44-
if (exitCode === 0 || exitCode === 2) {
44+
if (exitCode === 0 || exitCode === 2 || !stderr.contents) {
4545
// A exitCode of 0 is considered a success
4646
// An exitCode of 2 may be returned when the '-detailed-exitcode' option
4747
// is passed to plan. This denotes Success with non-empty
@@ -50,5 +50,5 @@ async function checkStackQL () {
5050
}
5151

5252
// A non-zero exitCode is considered an error
53-
core.setFailed(`StackQL exited with code ${exitCode}.`);
53+
core.setFailed(`StackQL exited with error ${stderr.contents}.`);
5454
})();

0 commit comments

Comments
 (0)