Removed instance Exception ErrorResponse
This commit is contained in:
parent
f2ad6612a9
commit
91f98c480e
@ -463,8 +463,8 @@ runHandler handler mrender sroute tomr master sub upload log' =
|
|||||||
YesodApp $ \eh rr cts initSession -> do
|
YesodApp $ \eh rr cts initSession -> do
|
||||||
let toErrorHandler e =
|
let toErrorHandler e =
|
||||||
case fromException e of
|
case fromException e of
|
||||||
Just x -> x
|
Just (HCError x) -> x
|
||||||
Nothing -> InternalError $ T.pack $ show e
|
_ -> InternalError $ T.pack $ show e
|
||||||
istate <- liftIO $ I.newIORef GHState
|
istate <- liftIO $ I.newIORef GHState
|
||||||
{ ghsSession = initSession
|
{ ghsSession = initSession
|
||||||
, ghsRBC = Nothing
|
, ghsRBC = Nothing
|
||||||
|
|||||||
@ -59,7 +59,6 @@ data ErrorResponse =
|
|||||||
| PermissionDenied Text
|
| PermissionDenied Text
|
||||||
| BadMethod H.Method
|
| BadMethod H.Method
|
||||||
deriving (Show, Eq, Typeable)
|
deriving (Show, Eq, Typeable)
|
||||||
instance Exception ErrorResponse
|
|
||||||
|
|
||||||
----- header stuff
|
----- header stuff
|
||||||
-- | Headers to be added to a 'Result'.
|
-- | Headers to be added to a 'Result'.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user