private static void WriteErrorsFromJob(IBuildQueueJob job) { var componentEnvoy = job.AssociatedEnvoy; IEnumerable <MessageInfo> errors; if (ComponentExtensions.ComponentHasBuildOrCompileErrors(componentEnvoy, out errors)) { CommandLineInterfaceApplication.WriteError(CreateComponentBuildErrorMessage(componentEnvoy.Name.Last, errors.ToList())); } else { CommandLineInterfaceApplication.WriteError( string.Format( CultureInfo.CurrentCulture, LocalizedStrings.BuildComponentTool_BuildFailedWithoutErrorMessages, componentEnvoy.Name.Last)); } }