mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
Prepare for 0.14.0 release
This commit is contained in:
+4
-1
@@ -185,7 +185,10 @@ impl failure::Fail for Error {
|
||||
fn cause(&self) -> Option<&failure::Fail> {
|
||||
match *self {
|
||||
Error::CallbackError { ref cause, .. } => Some(cause.as_ref()),
|
||||
Error::ExternalError(ref err) => err.as_fail().cause(),
|
||||
// Error::cause simply returns the contained Fail type, which we are already displaying
|
||||
// and returning the backtrace for, no need to repeat it as the cause.
|
||||
// When failure 1.0 is released, this can become `err.as_fail.cause()`
|
||||
Error::ExternalError(ref err) => err.cause().cause(),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user