Skip to content

Instantly share code, notes, and snippets.

@tkarpinski
Created January 20, 2012 20:04

Revisions

  1. tkarpinski created this gist Jan 20, 2012.
    4 changes: 4 additions & 0 deletions gistfile1.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    protected override void OnException(ExceptionContext filterContext)
    {
    filterContext.Result = Json(new { error = filterContext.Exception.ToString()},JsonRequestBehavior.AllowGet());
    }