We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0203cae commit 6bc5e71Copy full SHA for 6bc5e71
src/cargo/core/compiler/mod.rs
@@ -277,15 +277,16 @@ fn rustc<'a, 'cfg>(
277
}
278
279
fn internal_if_simple_exit_code(err: Error) -> Error {
280
- if err
+ // If a signal on unix (code == None) or an abnormal termination
281
+ // on Windows (codes like 0xC0000409), don't hide the error details.
282
+ match err
283
.downcast_ref::<ProcessError>()
284
.as_ref()
285
.and_then(|perr| perr.exit.and_then(|e| e.code()))
- != Some(1)
286
{
- return err;
287
+ Some(n) if n < 128 => Internal::new(err).into(),
288
+ _ => err,
289
- Internal::new(err).into()
290
291
292
state.running(&rustc);
0 commit comments