]> git.proxmox.com Git - cargo.git/commitdiff
Consider rustc failure internal despite JSON formatting
authorMark Rousskov <mark.simulacrum@gmail.com>
Tue, 31 Jul 2018 19:27:17 +0000 (13:27 -0600)
committerMark Rousskov <mark.simulacrum@gmail.com>
Tue, 31 Jul 2018 19:27:17 +0000 (13:27 -0600)
src/cargo/core/compiler/mod.rs

index 45b47234580681ae0f555abba282213abfb4fc0e..605f061f4e83f41c0b199e0bcf45c22de23e3a42 100644 (file)
@@ -284,7 +284,7 @@ fn rustc<'a, 'cfg>(
                     }
                     Ok(())
                 },
-            ).chain_err(|| format!("Could not compile `{}`.", name))?;
+            ).map_err(Internal::new).chain_err(|| format!("Could not compile `{}`.", name))?;
         } else if build_plan {
             state.build_plan(buildkey, rustc.clone(), outputs.clone());
         } else {