Skip to content

Commit c74d657

Browse files
committed
Also print out the relevant commit message on errors
Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
1 parent 71f1ffb commit c74d657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl Repository {
236236
self.perform_commit_and_push(message, modified_file)
237237
.map(|_| println!("Commit and push finished for \"{}\"", message))
238238
.map_err(|err| {
239-
eprintln!("Commit and push errored: {}", err);
239+
eprintln!("Commit and push for \"{}\" errored: {}", message, err);
240240
err
241241
})
242242
}

0 commit comments

Comments
 (0)