Skip to content

Create Errors::DatabaseError#284

Merged
jenny-codes merged 3 commits intomainfrom
jennyshih/multiple-error
Oct 31, 2025
Merged

Create Errors::DatabaseError#284
jenny-codes merged 3 commits intomainfrom
jennyshih/multiple-error

Conversation

@jenny-codes
Copy link
Contributor

@jenny-codes jenny-codes commented Oct 30, 2025

Use a more descriptive error type for database errors instead of the generic Box<dyn Error>.

Also renaming the IndexingError​ to a more generic Errors​ type

Copy link
Contributor Author

jenny-codes commented Oct 30, 2025

@jenny-codes jenny-codes changed the title Transform a single IndexError into MultipleError Create IndexingError::DatabaseError Oct 30, 2025
@jenny-codes jenny-codes requested a review from a team October 30, 2025 15:30
@jenny-codes jenny-codes marked this pull request as ready for review October 30, 2025 15:30
Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From our chat: let's either move Database errors out of indexing or make the errors enum more generic.

@jenny-codes jenny-codes force-pushed the jennyshih/multiple-error branch from c89b44b to 104f79c Compare October 30, 2025 21:25
Copy link
Contributor Author

@vinistock I chose the second one and renamed the IndexingError to a generic Errors

@jenny-codes jenny-codes force-pushed the jennyshih/multiple-error branch from 104f79c to 9241f5d Compare October 31, 2025 14:24
@jenny-codes jenny-codes changed the base branch from main to graphite-base/284 October 31, 2025 16:25
@jenny-codes jenny-codes force-pushed the jennyshih/multiple-error branch from 9241f5d to 10bef90 Compare October 31, 2025 16:25
@jenny-codes jenny-codes changed the base branch from graphite-base/284 to jennyshih/create-index-result October 31, 2025 16:26
@jenny-codes jenny-codes force-pushed the jennyshih/create-index-result branch from 4bc044d to 89a65e0 Compare October 31, 2025 17:14
@jenny-codes jenny-codes force-pushed the jennyshih/multiple-error branch from 10bef90 to d55b7d1 Compare October 31, 2025 17:14
@jenny-codes jenny-codes changed the base branch from jennyshih/create-index-result to graphite-base/284 October 31, 2025 17:24
@jenny-codes jenny-codes force-pushed the jennyshih/multiple-error branch from d55b7d1 to 548ce91 Compare October 31, 2025 17:25
@graphite-app graphite-app bot changed the base branch from graphite-base/284 to main October 31, 2025 17:25
@jenny-codes jenny-codes force-pushed the jennyshih/multiple-error branch from 548ce91 to 87b5c3a Compare October 31, 2025 17:25
@jenny-codes jenny-codes changed the title Create IndexingError::DatabaseError Create Errors::DatabaseError Oct 31, 2025
Now that we have DatabaseError IndexingError is not suitable anymore, so
changing it to an more generic name.
@jenny-codes jenny-codes force-pushed the jennyshih/multiple-error branch from 87b5c3a to c159cf0 Compare October 31, 2025 19:56
@jenny-codes jenny-codes merged commit 032d3ba into main Oct 31, 2025
12 checks passed
@jenny-codes jenny-codes deleted the jennyshih/multiple-error branch October 31, 2025 20:01
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.

2 participants