Skip to content

Commit 4a56b30

Browse files
committed
catch exceptions while waiting
1 parent 601e916 commit 4a56b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Development/IDE/Core/Shake.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ workerThread i@IdeState{shakeQueue=sq@ShakeQueue{..},..} = do
270270
cancel
271271
mapM_ (requeueIfCancelled sq) ds)
272272
-- shakeRun already catches exceptions from the actions
273-
_res <- wait
273+
_res <- try @SomeException wait
274274
-- Action finished, nothing to abort now
275275
writeVar qabort id
276276
return ()

0 commit comments

Comments
 (0)