From f479ba4d4c5d208ee4c263730c5bedf76056e159 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Mon, 19 Jun 2023 00:41:11 -0400 Subject: [PATCH] Proper error handling for the walkfunc --- cmd/obp/cmd/validate.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/obp/cmd/validate.go b/cmd/obp/cmd/validate.go index f318ff0..e4a8162 100644 --- a/cmd/obp/cmd/validate.go +++ b/cmd/obp/cmd/validate.go @@ -60,7 +60,9 @@ var validateCmd = &cobra.Command{ } return nil }) - + if err != nil { + return fmt.Errorf("walkfunc failed: %w", err) + } return nil }, }