Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit a7de18d

Browse files
authored
[GH-144] Rethrow cought exceptions to check if the application is throwing them. (#145)
1 parent d8a8163 commit a7de18d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Cardano/Shell/Lib.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ runCardanoApplicationWithFeatures applicationEnvironment cardanoFeatures cardano
127127
-- Here we run the actual application.
128128
-- We presume that the control-flow is now in the hands of that function.
129129
-- An example of top-level-last-resort-error-handling-strategy.
130-
liftIO $ catchAny (runCardanoApplication cardanoApplication) $ \_ -> do
131-
--putTextLn "Exception occured!"
132-
pure ()
130+
liftIO $ catchAny (runCardanoApplication cardanoApplication) $ \exception -> do
131+
-- For now simply rethrow, might be a good idea to have general exception handler.
132+
throwM exception
133133

134134
-- When we reach this point, we cancel all the features.
135135
_ <- mapM cancel (reverse asyncCardanoFeatures)

0 commit comments

Comments
 (0)