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(
84
84
if ( resp . data != null ) {
85
85
const responseObject = resp . data ;
86
86
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
+ }
88
92
}
89
93
reject ( "Could not download artefacts for test id " + test_id ) ;
90
94
}
Original file line number Diff line number Diff line change @@ -151,11 +151,15 @@ module.exports = function (args) {
151
151
. then ( function ( exit_code ) {
152
152
if ( lt_config [ "run_settings" ] [ "exit-on-failure" ] ) {
153
153
process . exit ( exit_code ) ;
154
+ } else {
155
+ process . exit ( 0 ) ;
154
156
}
155
157
} )
156
158
. catch ( function ( error ) {
157
159
if ( lt_config [ "run_settings" ] [ "exit-on-failure" ] ) {
158
160
process . exit ( 1 ) ;
161
+ } else {
162
+ process . exit ( 0 ) ;
159
163
}
160
164
} ) ;
161
165
}
You can’t perform that action at this time.
0 commit comments