-
Notifications
You must be signed in to change notification settings - Fork 892
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
Refine Display
and Source
implementation for error types
#5439
Conversation
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
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.
Changes make sense, thanks 👍
Looks like you'll need to fix a bunch of the tests, however
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
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.
Looks good, thanks for this 👍
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.
Thank you @BugenZhao
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Which issue does this PR close?
Closes #5438.
Rationale for this change
Check the issue for the motivation. Also update the
source
implementation to make it consistent with the changes onDisplay
.- If there's a prompt ahead of formatting the inner error, provide it as a source error. This is similar to#[source]
or#[from]
inthiserror
.- If there's no prompt but we directly forward the method to the inner error, also forward thesource
method. This is similar to#[transparent]
inthiserror
.What changes are included in this PR?
Are there any user-facing changes?
The description and source of
ArrowError
andFlightError
get updated.