No more contextless error returns
continuous-integration/drone/tag Build is passing Details

main v0.1.7
Nick Dumas 2 years ago
parent 8de6452c64
commit 56f806a1f5

@ -34,7 +34,7 @@ var validateCmd = &cobra.Command{
err := fs.WalkDir(root, ".", func(path string, d fs.DirEntry, err error) error { err := fs.WalkDir(root, ".", func(path string, d fs.DirEntry, err error) error {
if err != nil { if err != nil {
return err return fmt.Errorf("could not walk %q: %w", path, err)
} }
if d.IsDir() { if d.IsDir() {
@ -61,7 +61,7 @@ var validateCmd = &cobra.Command{
return nil return nil
}) })
return err return fmt.Errorf("validate command failed: %w", err)
}, },
} }

Loading…
Cancel
Save