ReportAPIUpdaterCrash() private static method

private static ReportAPIUpdaterCrash ( IEnumerable errorOutput ) : void
errorOutput IEnumerable
return void
Ejemplo n.º 1
0
 private static void HandleUpdaterReturnValue(ManagedProgram program)
 {
     if (program.ExitCode == 0)
     {
         APIUpdaterHelper.UpdateFilesInVCIfNeeded();
         return;
     }
     ScriptUpdatingManager.ReportExpectedUpdateFailure();
     if (program.ExitCode > 0)
     {
         APIUpdaterHelper.ReportAPIUpdaterFailure(program.GetErrorOutput());
     }
     else
     {
         APIUpdaterHelper.ReportAPIUpdaterCrash(program.GetErrorOutput());
     }
 }
Ejemplo n.º 2
0
 private static void HandleUpdaterReturnValue(ManagedProgram program)
 {
     if (program.ExitCode == 0)
     {
         Console.WriteLine(string.Join(Environment.NewLine, program.GetErrorOutput()));
         APIUpdaterHelper.UpdateFilesInVCIfNeeded();
     }
     else
     {
         ScriptUpdatingManager.ReportExpectedUpdateFailure();
         if (program.ExitCode > 0)
         {
             APIUpdaterHelper.ReportAPIUpdaterFailure(program.GetErrorOutput());
         }
         else
         {
             APIUpdaterHelper.ReportAPIUpdaterCrash(program.GetErrorOutput());
         }
     }
 }