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
16
16
import Control.Concurrent.MVar
17
17
import Control.Exception
18
18
( AsyncException (UserInterrupt )
19
+ , fromException
19
20
)
20
21
import qualified Control.Lens as Lens
21
22
import Control.Monad
@@ -87,6 +88,9 @@ import Prof
87
88
( MonadProf
88
89
)
89
90
91
+ import Kore.Log.ErrorException
92
+ ( errorException
93
+ )
90
94
import Kore.Unification.Procedure
91
95
( unificationProcedure
92
96
)
@@ -276,9 +280,10 @@ runRepl
276
280
277
281
catchEverything :: a -> m a -> m a
278
282
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
282
287
pure a
283
288
284
289
replGreeting :: m ()
You can’t perform that action at this time.
0 commit comments