Skip to content

Commit 6a5fea9

Browse files
committed
Updated checkFormatCode in build.fs so that if fails if fantomas fails
1 parent 861332d commit 6a5fea9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/build.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ let checkFormatCode _ =
152152
elif result.ExitCode = 99 then
153153
failwith "Some files need formatting, check output for more info"
154154
else
155-
Trace.logf "Errors while formatting: %A" result.Errors
155+
let msg = sprintf "Errors while formatting: %A" result.Errors
156+
Trace.log msg
157+
failwith msg
156158

157159

158160
let clean _ =

0 commit comments

Comments
 (0)