Skip to content

Commit 1e5cb6c

Browse files
committed
Better error message when commit not found
1 parent b6b7be6 commit 1e5cb6c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ Changelog of Git Changelog.
55
## Next release
66
### Other changes
77

8-
[6b753199a81f9fb](https://github.com/tomasbjerre/git-changelog-lib/commit/6b753199a81f9fb) Tomas Bjerre *2016-01-31 10:30:01*
8+
[a10bef4d61b05d3](https://github.com/tomasbjerre/git-changelog-lib/commit/a10bef4d61b05d3) Tomas Bjerre *2016-01-31 12:14:45*
9+
10+
Better error message when commit not found
11+
12+
13+
## 1.23
14+
### Other changes
15+
16+
[a9fc5a30a82c320](https://github.com/tomasbjerre/git-changelog-lib/commit/a9fc5a30a82c320) Tomas Bjerre *2016-01-31 10:30:24*
917

1018
Sorting tags by committime, not committime formatted string
1119

src/main/java/se/bjurr/gitchangelog/internal/git/GitRepo.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package se.bjurr.gitchangelog.internal.git;
22

3-
import static com.google.common.base.Joiner.on;
43
import static com.google.common.base.Objects.firstNonNull;
54
import static com.google.common.base.Throwables.propagate;
65
import static com.google.common.collect.Iterables.filter;
@@ -94,7 +93,7 @@ public List<GitCommit> getDiff(ObjectId from, ObjectId to) {
9493

9594
return newArrayList(transform(diff, TO_GITCOMMIT));
9695
} catch (Exception e) {
97-
throw new RuntimeException("References:\n" + on("\n").join(getAllRefs().keySet()), e);
96+
throw new RuntimeException(toString(), e);
9897
} finally {
9998
git.close();
10099
}

0 commit comments

Comments
 (0)