This commit extends the raise statements on errors in user-provided
code with from e clauses that attach the original exception to the one
being raised. This allows to debug the root cause of the error more
easily.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for submitting this patch! Added a comment :)
mlir/utils/mbr/mbr/main.py | ||
---|---|---|
40–43 | How about also including e in error_message string? |
Comment Actions
Updating D129762: [mlir][mbr] Improve diagnostics on error with raise from.
Also giving more details about the root exception in the short message
where that hadn't been done yet.
How about also including e in error_message string?