We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3958913 commit 90b87a6Copy full SHA for 90b87a6
1 file changed
wrapper/stackql.js
@@ -41,7 +41,7 @@ async function checkStackQL () {
41
core.setOutput('stderr', stderr.contents);
42
core.setOutput('exitcode', exitCode.toString(10));
43
44
- if (exitCode === 0 || exitCode === 2) {
+ if (exitCode === 0 || exitCode === 2 || !stderr.contents) {
45
// A exitCode of 0 is considered a success
46
// An exitCode of 2 may be returned when the '-detailed-exitcode' option
47
// is passed to plan. This denotes Success with non-empty
@@ -50,5 +50,5 @@ async function checkStackQL () {
50
}
51
52
// A non-zero exitCode is considered an error
53
- core.setFailed(`StackQL exited with code ${exitCode}.`);
+ core.setFailed(`StackQL exited with error ${stderr.contents}.`);
54
})();
0 commit comments