@@ -218,7 +218,12 @@ private GitInstallationState GetZipsIfNeeded(GitInstallationState state)
218
218
return state ;
219
219
220
220
var downloader = new Downloader ( ) ;
221
- downloader . Catch ( e => true ) ;
221
+ downloader
222
+ . Catch ( e =>
223
+ {
224
+ LogHelper . Trace ( e , "Failed to download" ) ;
225
+ return true ;
226
+ } ) ;
222
227
downloader . Progress ( p => ( ( Progress ) Progress ) ? . UpdateProgress ( 20 + ( long ) ( 20 * p . Percentage ) , 100 , downloader . Name ) ) ;
223
228
if ( ! state . GitZipExists && ! state . GitIsValid && state . GitPackage != null )
224
229
downloader . QueueDownload ( state . GitPackage . Uri , installDetails . ZipPath ) ;
@@ -255,7 +260,11 @@ private GitInstallationState ExtractGit(GitInstallationState state)
255
260
var unzipTask = new UnzipTask ( cancellationToken , installDetails . GitZipPath ,
256
261
gitExtractPath , sharpZipLibHelper ,
257
262
environment . FileSystem )
258
- . Catch ( e => true ) ;
263
+ . Catch ( e =>
264
+ {
265
+ LogHelper . Trace ( e , "Failed to unzip " + installDetails . GitZipPath ) ;
266
+ return true ;
267
+ } ) ;
259
268
unzipTask . Progress ( p => ( ( Progress ) Progress ) ? . UpdateProgress ( 40 + ( long ) ( 20 * p . Percentage ) , 100 , unzipTask . Name ) ) ;
260
269
var path = unzipTask . RunWithReturn ( true ) ;
261
270
var target = state . GitInstallationPath ;
@@ -276,7 +285,11 @@ private GitInstallationState ExtractGit(GitInstallationState state)
276
285
var unzipTask = new UnzipTask ( cancellationToken , installDetails . GitLfsZipPath ,
277
286
gitLfsExtractPath , sharpZipLibHelper ,
278
287
environment . FileSystem )
279
- . Catch ( e => true ) ;
288
+ . Catch ( e =>
289
+ {
290
+ LogHelper . Trace ( e , "Failed to unzip " + installDetails . GitLfsZipPath ) ;
291
+ return true ;
292
+ } ) ;
280
293
unzipTask . Progress ( p => ( ( Progress ) Progress ) ? . UpdateProgress ( 60 + ( long ) ( 20 * p . Percentage ) , 100 , unzipTask . Name ) ) ;
281
294
var path = unzipTask . RunWithReturn ( true ) ;
282
295
var target = state . GitLfsExecutablePath ;
0 commit comments