File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import Prelude.Kore
1616import Control.Concurrent.MVar
1717import Control.Exception
1818 ( AsyncException (UserInterrupt )
19+ , fromException
1920 )
2021import qualified Control.Lens as Lens
2122import Control.Monad
@@ -87,6 +88,9 @@ import Prof
8788 ( MonadProf
8889 )
8990
91+ import Kore.Log.ErrorException
92+ ( errorException
93+ )
9094import Kore.Unification.Procedure
9195 ( unificationProcedure
9296 )
@@ -276,9 +280,10 @@ runRepl
276280
277281 catchEverything :: a -> m a -> m a
278282 catchEverything a =
279- Exception. handleAll $ \ e -> liftIO $ do
280- putStrLn " Stepper evaluation errored."
281- print e
283+ Exception. handleAll $ \ e -> do
284+ case fromException e of
285+ Just (Log. SomeEntry entry) -> Log. logEntry entry
286+ Nothing -> errorException e
282287 pure a
283288
284289 replGreeting :: m ()
You can’t perform that action at this time.
0 commit comments