File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,11 @@ function download_artefact(
8484 if ( resp . data != null ) {
8585 const responseObject = resp . data ;
8686 const dataValue = responseObject . data ;
87- reject ( "Could not download artefacts for test id " + test_id + " with reason " + dataValue ) ;
87+ if ( dataValue != null ) {
88+ reject ( "Could not download artefacts for test id " + test_id + " with reason " + dataValue ) ;
89+ } else {
90+ reject ( "Could not download artefacts for test id " + test_id ) ;
91+ }
8892 }
8993 reject ( "Could not download artefacts for test id " + test_id ) ;
9094 }
Original file line number Diff line number Diff line change @@ -151,11 +151,15 @@ module.exports = function (args) {
151151 . then ( function ( exit_code ) {
152152 if ( lt_config [ "run_settings" ] [ "exit-on-failure" ] ) {
153153 process . exit ( exit_code ) ;
154+ } else {
155+ process . exit ( 0 ) ;
154156 }
155157 } )
156158 . catch ( function ( error ) {
157159 if ( lt_config [ "run_settings" ] [ "exit-on-failure" ] ) {
158160 process . exit ( 1 ) ;
161+ } else {
162+ process . exit ( 0 ) ;
159163 }
160164 } ) ;
161165 }
You can’t perform that action at this time.
0 commit comments