ignore code 1

This commit is contained in:
Paul Schneider 2021-06-18 21:16:38 +01:00
commit 981f3209e0
2 changed files with 17 additions and 3 deletions

View file

@ -120,7 +120,8 @@ namespace nuget_host.Controllers
var destdir = new DirectoryInfo(dest.DirectoryName);
if (dest.Exists)
{
ViewData["error"] = "existant";
ViewData["msg"] = "existant";
ViewData["ecode"] = 1;
logger.LogWarning("400 : existant");
return BadRequest(ViewData);
}
@ -180,7 +181,7 @@ namespace nuget_host.Controllers
{
if (string.IsNullOrEmpty(id))
{
ViewData["warn"] = "no id";
ViewData["msg"] = "no id";
}
else
{