Skip to content

Commit

Permalink
More graceful failure
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Dec 20, 2024
1 parent 4eedddd commit b7a8e9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ packages: hs-bindgen-libclang
packages: hs-bindgen-bootstrap
packages: ansi-diff

-- packages: /home/phadej/tree-diff

tests: True
benchmarks: True

Expand Down
2 changes: 2 additions & 0 deletions hs-bindgen/tests/TastyGolden.hs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ runGoldenSteps (GoldenSteps getGolden getTested cmp update) progress opts = do
mbNew <- try $ getTested stepFn
msgs <- readIORef msgsRef <&> reverse

print $ either (const 'x') (const 'y') mbNew

case mbNew of
Left e
| Just _ <- fromException @AsyncException e -> throwIO e
Expand Down

0 comments on commit b7a8e9f

Please sign in to comment.