-
Notifications
You must be signed in to change notification settings - Fork 64
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
vhost_user: expand error messages for clarity #113
Conversation
9b985bd
to
aa3a436
Compare
We can wrap up the feature checking into helpers to reduce the amount of boilerplate code while enabling us to use a more idiomatic ?; exit path on error. Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
aa3a436
to
004c3e9
Compare
LGTM, I think we can merge this one once the coverage number is fixed to the new value. Thanks @stsquad ! |
The InvalidOperation error type covers a wide range of error cases which can be inscrutable when passed to the user. To help with this we: - add a textual reason field to the error message - create InactiveFeature for use of un-neogitated features - create InactiveOperation for use of un-negotiated protocol extensions Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
The spec has been converted to .rst and now generated a nicer rendered version whenever it is updated in QEMU's master branch. Lets use it instead. Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
004c3e9
to
ca6a667
Compare
I have a small patches waiting for vhost-user-master and vhost-device once the version for this crate is bumped . |
Does this PR not get automatically merged once approved or does it need to be done manually? |
No it still has to be merged manually. |
Summary of the PR
The InvalidOperation error type covers a wide range of error cases
which can be inscrutable when passed to the user. To help with this
we:
Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
git commit -s
), and the commitmessage has max 60 characters for the summary and max 75 characters for each
description line.
test.
unsafe
code is properly documented.