Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle structs explicitly when adding error type
We want to avoid assuming that all errors reasons are either nil or structs. This rearranges the clauses and uses pattern matching to handle the struct case, allowing us to handle anything else like we handled the nil case before.
- Loading branch information