Skip to content

Commit

Permalink
Use exceptions .ToString() when printing error
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Robert Pickering authored and Krzysztof-Cieslak committed Apr 7, 2020
1 parent 082f6d1 commit f4d7a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fornax/Fornax.fs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ let main argv =
| FornaxGeneratorException message ->
printfn "%s%s%s" message Environment.NewLine waitingForChangesMessage
| exn ->
printfn "An unexpected error happend: %s%s%s" exn.Message Environment.NewLine exn.StackTrace
printfn "An unexpected error happend: %O" exn
exit 1

guardedGenerate ()
Expand Down

0 comments on commit f4d7a14

Please sign in to comment.