Skip to content

Commit 8027be2

Browse files
authored
Merge pull request #326 from gren-lang/push-tyopoklukxmx
`attemptWithStyle` didn't always wait for reporting to terminal to finish
2 parents 7de9851 + 62be005 commit 8027be2

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)