From a5fd2ce3f89568a191c609eaa7ebab9026b06531 Mon Sep 17 00:00:00 2001 From: Johannes Batzill Date: Fri, 15 Dec 2023 13:14:36 +0000 Subject: [PATCH] fix linting error (#914) --- app/api/controller/check/check_report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/check/check_report.go b/app/api/controller/check/check_report.go index 54ade90c5..8a91420a6 100644 --- a/app/api/controller/check/check_report.go +++ b/app/api/controller/check/check_report.go @@ -64,7 +64,7 @@ func (in *ReportInput) Validate( // Validate and sanitize the input data based on version; Require a link... and similar operations. if err := validatorFn(in, session); err != nil { - return err + return fmt.Errorf("payload validation failed: %w", err) } return nil