@@ -2249,12 +2249,15 @@ public static async Task<Uri> DownloadAsync(string name) {
22492249 }
22502250 } catch ( Exceptions . DownloadFailedException ) {
22512251 throw ;
2252- } catch ( ArgumentException ) {
2253- throw new Exceptions . DownloadFailedException ( "The download failed because the download name \" " + name + "\" is invalid." ) ;
2254- } catch ( HttpRequestException ) {
2252+ } catch ( HttpRequestException ex ) {
2253+ Exceptions . LogExceptionToLauncher ( ex ) ;
22552254 throw new Exceptions . DownloadFailedException ( "The download failed because the HTTP Request is invalid." ) ;
2256- } catch ( InvalidOperationException ) {
2255+ } catch ( InvalidOperationException ex ) {
2256+ Exceptions . LogExceptionToLauncher ( ex ) ;
22572257 throw new Exceptions . DownloadFailedException ( "The download failed because the address \" " + name + "\" was not understood." ) ;
2258+ } catch ( Exception ex ) {
2259+ Exceptions . LogExceptionToLauncher ( ex ) ;
2260+ throw new Exceptions . DownloadFailedException ( "The download failed because the download name \" " + name + "\" is invalid." ) ;
22582261 } finally {
22592262 downloadSemaphoreSlim . Release ( ) ;
22602263 }
@@ -2364,10 +2367,12 @@ private static Configuration GetEXEConfiguration(bool create, string name) {
23642367 //throw new ConfigurationErrorsException("The EXE Configuration failed to download.");
23652368 } catch ( ConfigurationErrorsException ) {
23662369 // fail silently
2367- } catch ( IOException ) {
2370+ } catch ( IOException ex2 ) {
2371+ Exceptions . LogExceptionToLauncher ( ex2 ) ;
23682372 throw new ConfigurationErrorsException ( "The EXE Configuration is in use." ) ;
23692373 }
2370- } catch ( IOException ) {
2374+ } catch ( IOException ex2 ) {
2375+ Exceptions . LogExceptionToLauncher ( ex2 ) ;
23712376 throw new ConfigurationErrorsException ( "The EXE Configuration is in use." ) ;
23722377 }
23732378
0 commit comments