Skip to content

Conversation

@Lunderberg
Copy link
Contributor

Prior to this commit, exceptions raised during the parsing of TVMScript would be caught and replaced with a new exception. While this does allow the TVMScript location of the error to be included in the exception, it also removes the stack trace of the original error. This commit updates the Parser.report_error function to provide the original stack trace alongside the updated exception object.

Prior to this commit, exceptions raised during the parsing of
TVMScript would be caught and replaced with a new exception.  While
this does allow the TVMScript location of the error to be included in
the exception, it also removes the stack trace of the original error.
This commit updates the `Parser.report_error` function to provide the
original stack trace alongside the updated exception object.
Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

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

Awesome update!

@Lunderberg Lunderberg merged commit 73e7909 into apache:main Sep 27, 2023
@Lunderberg Lunderberg deleted the tvmscript_preserve_stack_trace_after_parsing_error branch September 27, 2023 19:57
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.

2 participants