Skip to content

Commit

Permalink
Show exception (tamarin-prover#557)
Browse files Browse the repository at this point in the history
* show IOException

* fix compile error

* better message
  • Loading branch information
jdreier committed Jun 29, 2023
1 parent b62bb18 commit 7d77450
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Main/Console.hs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,12 @@ testProcess check defaultMsg testName prog args inp ignoreExitCode maudeTest = d

where
handler :: IOException -> IO (Maybe String)
handler _ = do putStrLn "caught exception while executing:"
handler exception =
do putStrLn "caught exception while executing:"
putStrLn $ commandLine prog args
putStrLn $ "with input: " ++ inp
putStrLn $ "Exception: "
putStrLn $ " " ++ show exception
if maudeTest then
error "Maude is not installed. Ensure Maude is available and on the path."
else putStrLn ""
Expand Down

0 comments on commit 7d77450

Please sign in to comment.