mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Also consider wrapped errors when checking for file IsNotExist errors
Fixes #10534
This commit is contained in:
@@ -268,7 +268,7 @@ func Lint() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Run go vet linter
|
||||
// Run go vet linter
|
||||
func Vet() error {
|
||||
if err := sh.Run(goexe, "vet", "./..."); err != nil {
|
||||
return fmt.Errorf("error running go vet: %v", err)
|
||||
|
Reference in New Issue
Block a user