better exception display
This commit is contained in:
parent
0d89b65bfc
commit
867fd116a7
5 changed files with 10 additions and 8 deletions
|
@ -184,7 +184,7 @@ runHandler :: Handler -> FilePath -> Maybe FileStatus -> Assistant ()
|
|||
runHandler handler file filestatus = void $ do
|
||||
r <- tryIO <~> handler (normalize file) filestatus
|
||||
case r of
|
||||
Left e -> liftIO $ print e
|
||||
Left e -> liftIO $ warningIO $ show e
|
||||
Right Nothing -> noop
|
||||
Right (Just change) -> do
|
||||
-- Just in case the commit thread is not
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue