File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -247,6 +247,16 @@ export async function downloadTool(url: string, fileName?: string): Promise<stri
247
247
} )
248
248
}
249
249
catch ( error ) {
250
+ if ( error . code ) {
251
+ // Print the HTTP Error code. These are always set when
252
+ // there is a proxy problem. Two usual suspects are:
253
+ // UNABLE_TO_VERIFY_LEAF_SIGNATURE: True when your proxy
254
+ // is expressing a self signed cert or when you need
255
+ // to trust the root CA from your proxy.
256
+ // UNABLE_TO_GET_ISSUER_CERT_LOCALLY: Seems to be set
257
+ // when you haven't trusted intermediate CA of your proxy.
258
+ tl . error ( `Error code is(${ error . code } )` )
259
+ }
250
260
reject ( error ) ;
251
261
}
252
262
} ) ;
@@ -486,7 +496,7 @@ function _createExtractFolder(dest?: string): string {
486
496
}
487
497
488
498
tl . mkdirP ( dest ) ;
489
-
499
+
490
500
return dest ;
491
501
}
492
502
You can’t perform that action at this time.
0 commit comments