Skip to content

Cleaner panic output for codegen errors #5716

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

Merged
merged 4 commits into from
Apr 30, 2025

Conversation

arihant2math
Copy link
Collaborator

Replacement of #5555. That attempted to just make it an error. But the main issue is that panicking leads to no source code or even file location. This simply outputs that before the panic (if the appropriate function is called). All the main places I have seen panics have been patched.

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
@youknowone youknowone requested a review from coolreader18 April 19, 2025 15:16
arihant2math and others added 2 commits April 19, 2025 09:48
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
@youknowone
Copy link
Member

@coolreader18 Could you review this patch?

Copy link
Member

@coolreader18 coolreader18 left a comment

Choose a reason for hiding this comment

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

LGTM!

@coolreader18 coolreader18 merged commit 431b900 into RustPython:main Apr 30, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants