diff --git a/repoNew.go b/repoNew.go index 9ed3a60..a8f026f 100644 --- a/repoNew.go +++ b/repoNew.go @@ -19,9 +19,13 @@ func (f *Forge) NewGoRepo(gopath string, url string) (*gitpb.Repo, error) { if test != nil { return test, nil } + if gopath == "" { + log.Info("TODO: gopath was blank. I'm not sure what is happening here, but this needs to determine the repo Namespace. all calls to NewGoRepo() need to be deprecated. Someone will have to do this when I have funding for WIT. If you are the one looking at this, track me down and I will help do this correctly.") + return nil, log.Errorf("gopath was blank") + } repo, err := f.Repos.NewGoRepo(fullpath, gopath) if err != nil { - log.Info("WARNING. NEW FAILED", fullpath) + log.Info("WARNING. NEW FAILED", fullpath, err) return nil, err } // slices.Reverse(f.Repos.Repos)