do not panic just because cargo failed

This commit is contained in:
Ralf Jung 2018-11-11 10:43:33 +01:00
parent 9b8f902976
commit b7c319c56a
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ use std::fs::{self, File};
use std::io::BufReader;
use std::io::prelude::*;
use std::path::{Path, PathBuf};
use std::process::{Command, Stdio};
use std::process::{Command, Stdio, exit};
use std::str;
use build_helper::{output, mtime, up_to_date};
@ -1098,7 +1098,7 @@ pub fn run_cargo(builder: &Builder,
});
if !ok {
panic!("cargo must succeed");
exit(1);
}
// Ok now we need to actually find all the files listed in `toplevel`. We've