mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Cleaned as much of notifications as I could find.
This commit is contained in:
parent
121f3258af
commit
3cb61e4c34
16 changed files with 95 additions and 213 deletions
|
@ -6,16 +6,9 @@ namespace NzbDrone.Web.Filters
|
|||
{
|
||||
public class JsonErrorFilter : FilterAttribute, IExceptionFilter
|
||||
{
|
||||
private readonly string _errorTitle;
|
||||
|
||||
public JsonErrorFilter(string errorTitle)
|
||||
{
|
||||
_errorTitle = errorTitle;
|
||||
}
|
||||
|
||||
public void OnException(ExceptionContext filterContext)
|
||||
{
|
||||
filterContext.Result = NotificationResult.Error(_errorTitle, filterContext.Exception.Message);
|
||||
filterContext.Result = JsonNotificationResult.Opps(filterContext.Exception.Message);
|
||||
filterContext.ExceptionHandled = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue