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

Simplify error handling in MetricScope wrapper #79

Merged
merged 1 commit into from
Feb 11, 2021
Merged

Simplify error handling in MetricScope wrapper #79

merged 1 commit into from
Feb 11, 2021

Conversation

Dolvic
Copy link
Contributor

@Dolvic Dolvic commented Feb 10, 2021

Issue #, if available:

Description of changes:
metricScope now lets the regular try-catch-finally semantics be
responsible for propagating any errors from the handler instead of
rethrowing them manually. This allows the wrapper's return type to
mirror the handler more accurately, eliminating the | undefined.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

`metricScope` now lets the regular try-catch-finally semantics be
responsible for propagating any errors from the handler instead of
rethrowing them manually. This allows the wrapper's return type to
mirror the handler more accurately, eliminating the `| undefined`.
@jaredcnance
Copy link
Member

Thanks for the PR! The build hit DockerHub limits, but passed on retry.

@jaredcnance jaredcnance self-requested a review February 11, 2021 02:55
@jaredcnance jaredcnance merged commit d10c5ac into awslabs:master Feb 11, 2021
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