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: tighten up error propagation #23

Merged
merged 1 commit into from
Sep 22, 2020
Merged

chore: tighten up error propagation #23

merged 1 commit into from
Sep 22, 2020

Conversation

iand
Copy link
Contributor

@iand iand commented Sep 22, 2020

Move goroutine management out of processor start into the caller so we can return an
error instead of panicing. Also make NewCacheCtxStore return an error instead of
panicing.

Add informative context to errors throughout core logic of indexer, processor and storage.

@iand iand requested a review from frrist September 22, 2020 10:44
Copy link
Member

@frrist frrist left a comment

Choose a reason for hiding this comment

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

Good stuff!

Move goroutine management out of processor start into the caller so we can return an
error instead of panicing. Also make NewCacheCtxStore return an error instead of
panicing.

Add informative context to errors throughout core logic of indexer, processor and storage.
@iand iand merged commit 42d475b into master Sep 22, 2020
@iand iand deleted the iand/error-context branch September 22, 2020 15:50
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