diff --git a/Cargo.toml b/Cargo.toml index 06eccad..b57e414 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ travis-ci = { repository = "AltSysrq/rusty-fork" } [dependencies] fnv = "1.0" -quick-error = "1.2" +quick-error = "2.0" tempfile = "3.0" wait-timeout = { version = "0.2", optional = true } diff --git a/src/error.rs b/src/error.rs index 5539a42..dad0916 100644 --- a/src/error.rs +++ b/src/error.rs @@ -52,7 +52,7 @@ quick_error! { /// Spawning a subprocess failed. SpawnError(err: io::Error) { from() - cause(err) + source(err) display("Spawn failed: {}", err) } }