What am I doing wrong here with my errorHandler? #511
-
I'm trying to learn Giraffe and am hitting a roadblock setting up a basic app. I have this
And at From what I can gather from reading the docs and the source code comments, Any help is much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The answer is to change to this,
I don't know why it wasn't possible to just use |
Beta Was this translation helpful? Give feedback.
The answer is to change to this,
let errorHandler (ex : exn) (logger : ILogger)
exn
is an abbreviation for the CLI typeSystem.Exception
.I don't know why it wasn't possible to just use
System.Exception
directly but I'm sure there's a good reason for that.