Skip to content

Commit

Permalink
Fix line spacing after failed updates
Browse files Browse the repository at this point in the history
Doesn't need manpage updates because that was already accounted for
  • Loading branch information
nabijaczleweli committed Dec 1, 2016
1 parent 20e6315 commit 38f3500
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ fn actual_main() -> Result<(), i32> {
}

let install_res = Command::new("cargo").arg("install").arg("-f").arg(&package.name).status().unwrap();
if !install_res.success() {
try!(Err((install_res.code().unwrap_or(-1), package.name)));
}

println!("");

Ok(())
if !install_res.success() {
Err((install_res.code().unwrap_or(-1), package.name))
} else {
Ok(())
}
})
.fold((0, vec![], None), |(s, mut e, r), p| match p {
Ok(()) => (s + 1, e, r),
Expand Down

0 comments on commit 38f3500

Please sign in to comment.