-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
lib: better error message for timeout error #1173
Conversation
fad5983
to
b62a412
Compare
Codecov Report
@@ Coverage Diff @@
## master #1173 +/- ##
==========================================
- Coverage 73.59% 73.58% -0.02%
==========================================
Files 144 144
Lines 10529 10547 +18
==========================================
+ Hits 7749 7761 +12
- Misses 2322 2328 +6
Partials 458 458
Continue to review full report at Codecov.
|
TimeoutError is currently very uninformative, even if there are duplicated error messages. This PR change TimeoutError to a struct, which contains both the place and the timeout duration, so it helps constructing error message with more useful information to user. While at it, also prevent duplicating timeout error message for setup and teardown. Close #702
b62a412
to
bf6ea01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
TimeoutError is currently very uninformative, even if there are
duplicated error messages.
This PR change TimeoutError to a struct, which contains both the place
and the timeout duration, so it helps constructing error message with
more useful information to user.
While at it, also prevent duplicating timeout error message for setup
and teardown.
Close #702