File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
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
@@ -4218,7 +4218,7 @@ async function checkStackQL () {
42184218 }
42194219
42204220 // A non-zero exitCode is considered an error
4221- core . setFailed ( `StackQL exited with code ${ exitCode } .` ) ;
4221+ core . setFailed ( `StackQL exited with error ${ stderr . contents } .` ) ;
42224222} ) ( ) ;
42234223
42244224} ) ( ) ;
Original file line number Diff line number Diff 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 || ! stderr . contents ) {
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
You can’t perform that action at this time.
0 commit comments