/// <summary> /// Checks for error from SD operation. /// </summary> /// <param name="process">The process.</param> /// <param name="results">The results.</param> /// <param name="opToLog">The op to log.</param> private static void CheckForErrorFromSDOperation( ProcessInformation process, DailyBuildFullResults results, SingleOperationResults opToLog ) { string[] errorOutput = process.GetErrorOutput(); if (errorOutput != null) { if (errorOutput.Length > 1) { // Ignore message where the enlistment is up to date. if (errorOutput[0].ToLower().Contains("File(s) up-to-date".ToLower())) { opToLog.Success = true; return; } opToLog.Success = false; for (Int32 j = 0; j < errorOutput.Length; j++) { opToLog.ErrorMessage += errorOutput[j] + " "; } ProgramExecutionLog.AddEntry( "Source Depot message was: " + opToLog.ErrorMessage + " . Severity not determined"); return; } } opToLog.Success = true; }