common/testing_common.go: Tighten error checking for module-find

for/master
Dustin Oprea 2020-01-11 17:51:50 -05:00
parent db9a0b3a24
commit 3b18b2295e
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ func GetModuleRootPath() string {
break
}
if err.Error() != "No such file or directory" {
log.Panic(err)
}
visited = append(visited, tryStampFilepath)
currentPath = path.Dir(currentPath)