Include stack trace when sampling errors are surfaced #2326
Labels
feature request
Request for a new feature
maintenance
Tasks related to infrastructure & dependencies
Problem Description
As a developer, I'd like to be able to see the stack trace of an error so I can figure out what went wrong and where to look.
We have a function that catches and surfaces errors with a better message during sampling.
SDV/sdv/single_table/utils.py
Lines 81 to 108 in 0d203be
The problem is that when we raise the new error, we're only including the original error message but not the stack trace. This makes it almost impossible to debug. Below is an example output
Expected behavior
Additional context
SDV/sdv/single_table/utils.py
Lines 105 to 106 in 0d203be
The line above should be something like
The text was updated successfully, but these errors were encountered: