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

feat: Ensure that status and labels are propagated for DB errors #679

Merged
merged 4 commits into from
Apr 17, 2024

Conversation

jrconlin
Copy link
Member

@jrconlin jrconlin commented Apr 15, 2024

Closes: SYNC-4223

@jrconlin jrconlin requested review from pjenvey and taddes April 15, 2024 20:45
@@ -195,9 +194,9 @@ impl ApiErrorKind {
ApiErrorKind::General(_) => "general",
ApiErrorKind::Io(_) => "io",
ApiErrorKind::Metrics(_) => "metrics",
ApiErrorKind::Database(_) => "database",
ApiErrorKind::Database(e) => e.metric_label().unwrap_or("database"),
Copy link
Member

Choose a reason for hiding this comment

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

Should probably just return on these?

Suggested change
ApiErrorKind::Database(e) => e.metric_label().unwrap_or("database"),
ApiErrorKind::Database(e) => return e.metric_label(),

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll also fix up the other one too.

@jrconlin jrconlin requested a review from pjenvey April 17, 2024 15:42
@pjenvey pjenvey merged commit 5a1f209 into master Apr 17, 2024
1 check passed
@pjenvey pjenvey deleted the feat/SYNC-4223_status branch April 17, 2024 17:18
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