Improve debugging help for reflection errors

As it's not super clear that the fixes listed below are directly related to
this issue.
This commit is contained in:
Jamie Tanna 2022-05-23 21:10:38 +01:00 коммит произвёл GitHub
Родитель 73266f9366
Коммит 3572cc1811
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -263,6 +263,9 @@ If the received value is `3`, then it will be printed as `03`.
```text
cannot find package "."
... github.com/golang/mock/mockgen/model
prog.go:14:2: no required module provides package ...: go.mod file not found in current directory or any parent directory; see 'go help modules'
prog.go:12:2: no required module provides package github.com/golang/mock/mockgen/model: go.mod file not found in current directory or any parent directory; see 'go help modules'
```
If you come across this error while using reflect mode and vendoring