Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use NotFoundError utility in more places #965

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Conversation

EvanHahn
Copy link
Contributor

This makes the following kind of change in a bunch of places:

-throw new Error('Not found')
+throw new NotFoundError()

I think this is a useful improvement on its own, but the changes to DataStore will also make an upcoming change easier.

I plan to YOLO-merge this if CI passes.

This makes the following kind of change in a bunch of places:

```diff
-throw new Error('Not found')
+throw new NotFoundError()
```

I think this is a useful improvement on its own, but the changes to
DataStore will also make [an upcoming change easier][0].

[0]: #188
@EvanHahn EvanHahn merged commit 292df70 into main Nov 18, 2024
9 checks passed
@EvanHahn EvanHahn deleted the notfounderror branch November 18, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant