Mono.Cecil.Tests.CodeDomCompilationService.GetErrorMessage C# (CSharp) Method

GetErrorMessage() static private method

static private GetErrorMessage ( CompilerResults results ) : string
results CompilerResults
return string
		static string GetErrorMessage (CompilerResults results)
		{
			if (!results.Errors.HasErrors)
				return string.Empty;

			var builder = new StringBuilder ();
			foreach (CompilerError error in results.Errors)
				builder.AppendLine (error.ToString ());
			return builder.ToString ();
		}