From 3b18b2295e42e3be8108f047e66bd356e41702c0 Mon Sep 17 00:00:00 2001 From: Dustin Oprea Date: Sat, 11 Jan 2020 17:51:50 -0500 Subject: [PATCH] common/testing_common.go: Tighten error checking for module-find --- v2/common/testing_common.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v2/common/testing_common.go b/v2/common/testing_common.go index c60dda1..fceaad3 100644 --- a/v2/common/testing_common.go +++ b/v2/common/testing_common.go @@ -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)