Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.
This repository was 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

@vxio

Description

@vxio

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

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

reference: #236 (comment)_

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions