diff --git a/src/cmd/go/internal/modload/init.go b/src/cmd/go/internal/modload/init.go index 20f7389f55..940f0a8e45 100644 --- a/src/cmd/go/internal/modload/init.go +++ b/src/cmd/go/internal/modload/init.go @@ -565,7 +565,7 @@ func findModulePath(dir string) (string, error) { return "github.com/" + string(m[1]), nil } - return "", fmt.Errorf("cannot determine module path for source directory %s (outside GOPATH, no import comments)", dir) + return "", fmt.Errorf("cannot determine module path for source directory %s (outside GOPATH, module path not specified)", dir) } var (