Fixed logging for Settings Controller and QualityProvider

Setup/Update of Default QualityProfiles will occur on start
This commit is contained in:
markus101 2011-02-03 18:58:02 -08:00
parent 519e2df560
commit 48e5b36936
4 changed files with 165 additions and 8 deletions

View file

@ -123,11 +123,12 @@ namespace NzbDrone.Web.Controllers
}
catch (Exception)
{
if (Request.IsAjaxRequest())
return Content("Settings Saved.");
Logger.Error("Error saving settings.");
return Content("Settings Saved.");
Logger.Error("");
if (Request.IsAjaxRequest())
return Content("Error saving settings.");
return Content("Error saving settings.");
}
@ -258,6 +259,29 @@ namespace NzbDrone.Web.Controllers
return Content("Settings Saved.");
}
[HttpPost]
public ActionResult SaveQuality(QualityModel data)
{
try
{
}
catch (Exception e)
{
Logger.ErrorException(e.Message, e);
if (Request.IsAjaxRequest())
return Content("Error Saving Settings, please fix any errors");
return Content("Error Saving Settings, please fix any errors");
}
if (Request.IsAjaxRequest())
return Content("Settings Saved.");
return Content("Settings Saved.");
}
[HttpPost]
public ActionResult SortedList(List<object > items)
{