Files
gtav-src/tools_ng/bin/CruiseControl/WebDashboard/MVC/Cruise/SimpleErrorViewBuilder.cs
T
2025-09-29 00:52:08 +02:00

14 lines
561 B
C#
Executable File

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(
@"<html><head><title>CruiseControl.NET</title></head><body><h1>An error has occurred in CruiseControl.NET</h1><p>{0}</p></body></html>",
errorMessage));
}
}
}