namespace ThoughtWorks.CruiseControl.WebDashboard.MVC.Cruise { public class SimpleErrorViewBuilder : IErrorViewBuilder { // ToDo - Something nicer here - probably use a Velocity Template. We shouldn't use the site template since it might have been that that went screwy public IResponse BuildView(string errorMessage) { return new HtmlFragmentResponse(string.Format( @"CruiseControl.NET

An error has occurred in CruiseControl.NET

{0}

", errorMessage)); } } }