Error catching Swift 5.1
Sometimes you need to find out what an error is.
func mightThrowAnError() -> throws
{
}
You can catch the error with this:do
{
try mightThrowAnError()
}
catch
{
print(error)
}