Skip to content

Commit 492fdb3

Browse files
authored
Unwrap error (#3234)
1 parent 6ab9416 commit 492fdb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apis/dos/validation/dos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func validateAppProtectDosMonitor(apDosMonitor v1beta1.ApDosMonitor) error {
173173
allErrs = append(allErrs, validation2.ValidateParameter(apDosMonitor.Protocol, validMonitorProtocol, fieldPath)...)
174174
err := allErrs.ToAggregate()
175175
if err != nil {
176-
return fmt.Errorf("app Protect Dos Monitor Protocol must be: %v", err)
176+
return fmt.Errorf("app Protect Dos Monitor Protocol must be: %w", err)
177177
}
178178
}
179179

0 commit comments

Comments
 (0)