@@ -218,7 +218,12 @@ private GitInstallationState GetZipsIfNeeded(GitInstallationState state)
218218 return state ;
219219
220220 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+ } ) ;
222227 downloader . Progress ( p => ( ( Progress ) Progress ) ? . UpdateProgress ( 20 + ( long ) ( 20 * p . Percentage ) , 100 , downloader . Name ) ) ;
223228 if ( ! state . GitZipExists && ! state . GitIsValid && state . GitPackage != null )
224229 downloader . QueueDownload ( state . GitPackage . Uri , installDetails . ZipPath ) ;
@@ -255,7 +260,11 @@ private GitInstallationState ExtractGit(GitInstallationState state)
255260 var unzipTask = new UnzipTask ( cancellationToken , installDetails . GitZipPath ,
256261 gitExtractPath , sharpZipLibHelper ,
257262 environment . FileSystem )
258- . Catch ( e => true ) ;
263+ . Catch ( e =>
264+ {
265+ LogHelper . Trace ( e , "Failed to unzip " + installDetails . GitZipPath ) ;
266+ return true ;
267+ } ) ;
259268 unzipTask . Progress ( p => ( ( Progress ) Progress ) ? . UpdateProgress ( 40 + ( long ) ( 20 * p . Percentage ) , 100 , unzipTask . Name ) ) ;
260269 var path = unzipTask . RunWithReturn ( true ) ;
261270 var target = state . GitInstallationPath ;
@@ -276,7 +285,11 @@ private GitInstallationState ExtractGit(GitInstallationState state)
276285 var unzipTask = new UnzipTask ( cancellationToken , installDetails . GitLfsZipPath ,
277286 gitLfsExtractPath , sharpZipLibHelper ,
278287 environment . FileSystem )
279- . Catch ( e => true ) ;
288+ . Catch ( e =>
289+ {
290+ LogHelper . Trace ( e , "Failed to unzip " + installDetails . GitLfsZipPath ) ;
291+ return true ;
292+ } ) ;
280293 unzipTask . Progress ( p => ( ( Progress ) Progress ) ? . UpdateProgress ( 60 + ( long ) ( 20 * p . Percentage ) , 100 , unzipTask . Name ) ) ;
281294 var path = unzipTask . RunWithReturn ( true ) ;
282295 var target = state . GitLfsExecutablePath ;
0 commit comments