When you create an ASP.NET Core application based on the webapp
template like so:
dotnet new webapp
you get a simple web application as a result.
This is that simple application, ported to F#/Giraffe.
Here's what it looks like:
Going to:
https://localhost:5001/error
simulates a runtime exception:
Enter the following to run the app:
dotnet watch run
The code for the app is in Program.fs.