ignore code 1
This commit is contained in:
parent
3fa1241ea2
commit
981f3209e0
2 changed files with 17 additions and 3 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue