File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ export class AstClient {
23
23
throw error ;
24
24
} finally {
25
25
writer . close ( ) ;
26
- logger . info ( 'Write stream closed.' ) ;
27
26
}
28
27
}
29
28
}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import {Client} from "./Client";
4
4
5
5
export class HttpClient implements Client {
6
6
private readonly axiosConfig : AxiosRequestConfig ;
7
+ private readonly domainErrMsg = 'Unable to download the CLI from the URL. Try adding the domain: \'download.checkmarx.com\' to your allow list.' ;
7
8
8
9
constructor ( ) {
9
10
this . axiosConfig = {
@@ -45,6 +46,9 @@ export class HttpClient implements Client {
45
46
return response ;
46
47
} catch ( error ) {
47
48
logger . error ( `Error sending ${ method } request to ${ url } : ${ error . message || error } ` ) ;
49
+ if ( this . axiosConfig . proxy !== undefined ) {
50
+ throw new Error ( `${ this . domainErrMsg } \nError: ${ error . message || error } ` ) ;
51
+ }
48
52
throw error ;
49
53
}
50
54
}
Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ export class CxInstaller {
103
103
logger . info ( 'Extracted CLI to:' , this . resourceDirPath ) ;
104
104
} catch ( error ) {
105
105
logger . error ( 'Error during installation:' , error ) ;
106
+ process . exit ( 1 ) ;
106
107
}
107
108
}
108
109
You can’t perform that action at this time.
0 commit comments