Skip to content

Commit 62be005

Browse files
committed
attemptWithStyle didn't wait for reporting to terminal to finish before returning in the success case.
1 parent 7de9851 commit 62be005

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

builder/src/Reporting.hs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,15 @@ attemptWithStyle style toReport work =
7777
result <- work `catch` reportExceptionsNicely
7878
case result of
7979
Right a ->
80-
return a
80+
case style of
81+
Silent ->
82+
return a
83+
Json ->
84+
return a
85+
Terminal mvar ->
86+
do
87+
readMVar mvar
88+
return a
8189
Left x ->
8290
case style of
8391
Silent ->

0 commit comments

Comments
 (0)