fix linting error (#914)

This commit is contained in:
Johannes Batzill 2023-12-15 13:14:36 +00:00 committed by Harness
parent 05af8b777b
commit a5fd2ce3f8

View File

@ -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