Removed instance Exception ErrorResponse

This commit is contained in:
Michael Snoyman 2013-01-15 11:12:25 +02:00
parent f2ad6612a9
commit 91f98c480e
2 changed files with 2 additions and 3 deletions

View File

@ -463,8 +463,8 @@ runHandler handler mrender sroute tomr master sub upload log' =
YesodApp $ \eh rr cts initSession -> do
let toErrorHandler e =
case fromException e of
Just x -> x
Nothing -> InternalError $ T.pack $ show e
Just (HCError x) -> x
_ -> InternalError $ T.pack $ show e
istate <- liftIO $ I.newIORef GHState
{ ghsSession = initSession
, ghsRBC = Nothing

View File

@ -59,7 +59,6 @@ data ErrorResponse =
| PermissionDenied Text
| BadMethod H.Method
deriving (Show, Eq, Typeable)
instance Exception ErrorResponse
----- header stuff
-- | Headers to be added to a 'Result'.