We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26d7b42 commit 361a400Copy full SHA for 361a400
pkg/plugins/golang/v3/init.go
@@ -17,7 +17,6 @@ limitations under the License.
17
package v3
18
19
import (
20
- "errors"
21
"fmt"
22
"os"
23
"path/filepath"
@@ -188,7 +187,7 @@ func checkDir() error {
188
187
return err
189
}
190
if info.Name() != "go.mod" && !strings.HasPrefix(info.Name(), ".") {
191
- return errors.New("only the go.mod and files with the prefix \"(.)\" are allowed before the init")
+ return fmt.Errorf("target directory is not empty: only go.mod and files with the prefix \".\" can exist before init (found %q)", info.Name())
192
193
return nil
194
})
0 commit comments