errors: standardize how we handle not found errors in the model layer
vxio opened this issue · 0 comments
vxio commented
A call to GetXXX() (XXX, error)
should always
- return XXX, nil if found
- return nil, ErrNotFound if not found
reference: #236 (comment)_