Skip to content

Commit 57a6dd7

Browse files
authored
Merge pull request #103 from matthiaskrgr/branch_hint
note that specified commits should be from the master branch
2 parents 9cc74c4 + 9045d9a commit 57a6dd7

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
@@ -76,7 +76,7 @@ pub fn get_commits_between(first_commit: &str, last_commit: &str) -> Result<Vec<
7676
let assert_by_bors = |c: &Git2Commit<'_>| -> Result<(), Error> {
7777
match c.author().name() {
7878
Some("bors") => Ok(()),
79-
Some(author) => bail!("Expected author {} to be bors for {}", author, c.id()),
79+
Some(author) => bail!("Expected author {} to be bors for {}.\n Make sure specified commits are on the master branch!", author, c.id()),
8080
None => bail!("No author for {}", c.id()),
8181
}
8282
};

0 commit comments

Comments
 (0)