Replies: 1 comment 4 replies
-
Doing such drastical changes to the error type is not possible without another major diesel version bump. We do not plan to issue another major diesel version for the next year or two. That written: I think we wan work on improving individual error messages if you provide examples of such "bad" messages. I also generally feel that this is the better solution here as such a backtrace wouldn't be that helpful for users anyway. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently diesel Errors does not have a backtrace attached, this issue is proposing to add (optional) backtrace support, for now via a manual
.backtrace()
function and in the future viastd::error::Error::provide
.from my quick glance at the diesel error code, this would require some refactoring to have all errors either made via a function (like
new
) to add a backtrace at construction, or manually create a backtrace when constructing a function like:...and the same again for all separate errors diesel has
why?
because this would make tracking down issues easier, for example tracking down why a specific chrono error happens (because chrono errors are not great) or for diesel
Err(diesel::Error)
reportsBeta Was this translation helpful? Give feedback.
All reactions