Exemple #1
0
 public void PrintFatalWebFailure(
     WebException webException)
 {
     using (var reader = new WebResponseReader(webException.Response))
     {
         var message = new[]
         {
             $"Web request failed ({webException.Status})",
             "Response was:",
             reader.ReadFullResponse() ?? "(unknown)"
         }.JoinWith("\n");
         PrintFatalFailure(message, webException.StackTrace);
     }
 }