Skip to content

Commit f4d7a14

Browse files
Robert PickeringKrzysztof-Cieslak
authored andcommitted
Use exceptions .ToString() when printing error
I believe this to better as all inner exceptions will also be printed. I found myself in a position where I was only getting a message about TargetInvocationException being thrown
1 parent 082f6d1 commit f4d7a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fornax/Fornax.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ let main argv =
165165
| FornaxGeneratorException message ->
166166
printfn "%s%s%s" message Environment.NewLine waitingForChangesMessage
167167
| exn ->
168-
printfn "An unexpected error happend: %s%s%s" exn.Message Environment.NewLine exn.StackTrace
168+
printfn "An unexpected error happend: %O" exn
169169
exit 1
170170

171171
guardedGenerate ()

0 commit comments

Comments
 (0)