SourceControl.ProcessReader.ErrorHandler C# (CSharp) Method

ErrorHandler() private method

private ErrorHandler ( object sendingProcess, DataReceivedEventArgs dataReceivedEventArgs ) : void
sendingProcess object
dataReceivedEventArgs System.Diagnostics.DataReceivedEventArgs
return void
        private void ErrorHandler(object sendingProcess,
            DataReceivedEventArgs dataReceivedEventArgs)
        {
            if (dataReceivedEventArgs.Data != null)
            {
                if ((logLevel & LogOptions.ClientUtility) == LogOptions.ClientUtility)
                {
                    System.Console.Error.WriteLine(dataReceivedEventArgs.Data);
                }
                errorStringBuilder.AppendLine(dataReceivedEventArgs.Data);
            }
        }