summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doVerify.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/doVerify.go b/doVerify.go
index 39019a0..647f808 100644
--- a/doVerify.go
+++ b/doVerify.go
@@ -30,12 +30,13 @@ func cleanNamespace(r *gitpb.Repo) string {
gowork := me.forge.Config.ReposDir
// todo: detect if using go.work file
newpath, err := filepath.Rel(gowork, r.FullPath)
- log.Info(newpath, gowork, "is gowork. fullpath:", r.FullPath)
- if err != nil {
- log.Info("cleanNamespace got err", newpath, err)
+ log.Info("cleanNamespace()", newpath, gowork, "is gowork. fullpath:", r.FullPath)
+ if err == nil {
+ log.Info("cleanNamespace returned", newpath)
// relative path to gosrc or gowork is the namespace
return newpath
}
+ log.Info("cleanNamespace got err", newpath, err)
// check for other stuff. use the URLs
return ""
}