Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

errors: standardize how we handle not found errors in the model layer #238

Open
vxio opened this issue Oct 9, 2020 · 0 comments
Open

errors: standardize how we handle not found errors in the model layer #238

vxio opened this issue Oct 9, 2020 · 0 comments
Assignees

Comments

@vxio
Copy link
Member

vxio commented Oct 9, 2020

A call to GetXXX() (XXX, error) should always

  • return XXX, nil if found
  • return nil, ErrNotFound if not found

reference: #236 (comment)_

@vxio vxio self-assigned this Oct 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant