Properly report push errors
This commit is contained in:
@@ -993,7 +993,10 @@ pub fn run() {
|
|||||||
);
|
);
|
||||||
remote
|
remote
|
||||||
.push(&[push_refspec], Some(&mut push_options))
|
.push(&[push_refspec], Some(&mut push_options))
|
||||||
.unwrap();
|
.unwrap_or_else(|error| {
|
||||||
|
print_error(&format!("Pushing to {} ({}) failed: {}", remote_name, remote.url().unwrap(), error));
|
||||||
|
process::exit(1);
|
||||||
|
});
|
||||||
|
|
||||||
target_branch
|
target_branch
|
||||||
.set_upstream(Some(&upstream_branch_name))
|
.set_upstream(Some(&upstream_branch_name))
|
||||||
|
|||||||
Reference in New Issue
Block a user