More messages for /revision errors.

This commit is contained in:
Irina Tiulneva 2021-06-18 14:22:13 +03:00
parent 4e69540d14
commit 4e552ae5b2
2 changed files with 12 additions and 2 deletions

View File

@ -57,6 +57,10 @@ public class DebugInfo
}
}
if (!File.Exists(ChangeLogFilePath)) {
return "changelog.xml doesn't exist";
}
var ChangeLogPatternFilePath = Path.Combine(basePath, TemplateName);
var xmlLog = new XmlDocument();

View File

@ -12,15 +12,17 @@ namespace TeamLab.HttpHandlers
get { return false; }
}
public string result;
public void ProcessRequest(HttpContext context)
{
var DebugString = DebugInfo.DebugString;
string result = "result's empty";
if (!String.IsNullOrEmpty(DebugString))
{
result = DebugString;
}
else {
else
{
if (DebugString == null)
{
result = "DebugString's null";
@ -30,6 +32,10 @@ namespace TeamLab.HttpHandlers
result = DebugInfo.GetStaticDebugString();
}
}
if (result == String.Empty)
{
result = "result's empty";
}
context.Response.Write(result);
}
}