Skip to content

Commit

Permalink
test(repo): add an informative error message to failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Apr 30, 2023
1 parent c8289ac commit 7d7470b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-cliff-core/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ mod test {
if let Err(e) = last_commit.into_conventional() {
match e {
Error::ParseError(e) => {
eprintln!("\nthe last commit is not conventional\n");
assert_eq!(ErrorKind::InvalidFormat, e.kind())
}
_ => {
Expand Down

0 comments on commit 7d7470b

Please sign in to comment.