Fix panic message in SingletonContext.VisitAllModules

The panic should be printing the module info string from the
moduleInfo, not trying to Stringify the Module interface.

Test: manual
Change-Id: I1a2b7c15c4216518c76b909b25d50ac2eb7d1baa
This commit is contained in:
Colin Cross 2019-03-25 15:04:09 -07:00
parent 19ef680bc4
commit 818af3bfe0

View file

@ -223,7 +223,7 @@ func (s *singletonContext) VisitAllModules(visit func(Module)) {
defer func() {
if r := recover(); r != nil {
panic(newPanicErrorf(r, "VisitAllModules(%s) for module %s",
funcName(visit), visitingModule))
funcName(visit), s.context.moduleInfo[visitingModule]))
}
}()