Better client side error handling

This commit is contained in:
Mark McDowall 2012-09-30 17:05:16 -07:00
parent 08d811f7c3
commit 02cf23721a
8 changed files with 12 additions and 20 deletions

View file

@ -13,6 +13,7 @@ using NzbDrone.Core.Model;
using NzbDrone.Core.Providers;
using NzbDrone.Core.Repository;
using NzbDrone.Core.Repository.Quality;
using NzbDrone.Web.Filters;
using NzbDrone.Web.Models;
namespace NzbDrone.Web.Controllers
@ -94,10 +95,9 @@ namespace NzbDrone.Web.Controllers
return new EmptyResult();
}
[JsonErrorFilter]
public JsonResult LocalSearch(string term)
{
//Get Results from the local DB and return
var results = _seriesProvider.SearchForSeries(term).Select(s => new SeriesSearchResultModel
{
Id = s.SeriesId,