Skip to content

Commit

Permalink
Better error message when commit not found
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Jan 31, 2016
1 parent b6b7be6 commit 1e5cb6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ Changelog of Git Changelog.
## Next release
### Other changes

[6b753199a81f9fb](https://github.com/tomasbjerre/git-changelog-lib/commit/6b753199a81f9fb) Tomas Bjerre *2016-01-31 10:30:01*
[a10bef4d61b05d3](https://github.com/tomasbjerre/git-changelog-lib/commit/a10bef4d61b05d3) Tomas Bjerre *2016-01-31 12:14:45*

Better error message when commit not found


## 1.23
### Other changes

[a9fc5a30a82c320](https://github.com/tomasbjerre/git-changelog-lib/commit/a9fc5a30a82c320) Tomas Bjerre *2016-01-31 10:30:24*

Sorting tags by committime, not committime formatted string

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package se.bjurr.gitchangelog.internal.git;

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

return newArrayList(transform(diff, TO_GITCOMMIT));
} catch (Exception e) {
throw new RuntimeException("References:\n" + on("\n").join(getAllRefs().keySet()), e);
throw new RuntimeException(toString(), e);
} finally {
git.close();
}
Expand Down

0 comments on commit 1e5cb6c

Please # to comment.