diff --git a/revision.c b/revision.c
index b0651845bf627cdfbd0aeebc4abc6366347b2433..c0df714f6cb0825196d1e79cbc53a042529e2d26 100644 (file)
--- a/revision.c
+++ b/revision.c
(commit->date < revs->max_age))
continue;
if (add_parents_to_list(revs, commit, &revs->commits, NULL) < 0)
- return NULL;
+ die("Failed to traverse parents of commit %s",
+ sha1_to_hex(commit->object.sha1));
}
switch (simplify_commit(revs, commit)) {
case commit_ignore:
continue;
case commit_error:
- return NULL;
+ die("Failed to simplify parents of commit %s",
+ sha1_to_hex(commit->object.sha1));
default:
return commit;
}