Skip to content

Commit b380404

Browse files
committed
Improve error message.
1 parent 3cebf22 commit b380404

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

git.rkt

+6-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,12 @@
5656
0))])
5757
(unless (= 1 num-without-parents)
5858
(error 'git-slice
59-
"expect 1 initial commit, found ~a commits without parents"
60-
num-without-parents)))
59+
(~a "expect 1 initial commit, found ~a commits without parents\n"
60+
"commits: ~a")
61+
num-without-parents
62+
(for/list ([(k v) commit->parents]
63+
#:when (null? v))
64+
k))))
6165

6266
(values commits head-commit commit->parents commit->children))
6367

0 commit comments

Comments
 (0)