Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit da0cc0d

Browse files
committed
gps: better information for panic on nil version
Patch originally suggested by Denis Subbotin ([email protected]), submitting under my name to pass Go CLA bot checks.
1 parent 8af3a37 commit da0cc0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gps/solver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ func (s *solver) findValidVersion(q *versionQueue, pl []string) error {
912912
if nil == q.current() {
913913
// this case should not be reachable, but reflects improper solver state
914914
// if it is, so panic immediately
915-
panic("version queue is empty, should not happen")
915+
panic("version queue is empty, should not happen: " + string(q.id.ProjectRoot) + " " + q.id.Source)
916916
}
917917

918918
faillen := len(q.fails)

0 commit comments

Comments
 (0)