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:
parent
19ef680bc4
commit
818af3bfe0
1 changed files with 1 additions and 1 deletions
|
@ -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]))
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in a new issue