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

Throw exceptions rather than returning them? #28

Open
oxcafedead opened this issue Apr 4, 2023 · 0 comments
Open

Throw exceptions rather than returning them? #28

oxcafedead opened this issue Apr 4, 2023 · 0 comments

Comments

@oxcafedead
Copy link

oxcafedead commented Apr 4, 2023

I found some non-clear behavior, and I wonder if it is intentional.

} catch (reason) {
this.endSpan(downstreamRequest, childSpan, reason);
return reason;
}
}

I would expect throw there instead of return at line 292.

Am I missing something obvious?

@oxcafedead oxcafedead changed the title Throw exceptions rather then returning them? Throw exceptions rather than returning them? Apr 7, 2023
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

No branches or pull requests

1 participant