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

Add source implementation for Error #1215

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Add source implementation for Error #1215

merged 1 commit into from
Feb 19, 2024

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Feb 16, 2024

A lot of errors do contain source, but the Error type did not actually implement the source() method and was always returning None, using the default implementation. Thanks @hseeberger and @thomastaylor312 for reporting this indirectly.

Signed-off-by: Tomasz Pietrek [email protected]

A lot of errors do contain source, but the Error type did not actually
implement the `source()` method and was always returning `None`, using
the default implementation. Thanks @hseeberger and @thomastaylor312 for
reporting this indirectly.

Signed-off-by: Tomasz Pietrek <[email protected]>
@hseeberger
Copy link

Hehe, I had found this peculiarity (not implementing source), but for whatever reason I thought that this was a deliberate decision. Which made me not like the error API too much. But now you made me happy ;-)

Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Jarema Jarema merged commit 1cc9f7e into main Feb 19, 2024
11 checks passed
@Jarema Jarema deleted the add-source-impl branch February 19, 2024 09:43
@hseeberger
Copy link

Any idea when you will release a new version / fix including this PR?

@Jarema
Copy link
Member Author

Jarema commented Mar 1, 2024

We're preparing for the release.

@hseeberger
Copy link

Nice!

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.

3 participants