Skip to content

Commit 0b34a3f

Browse files
authored
Use native error wrapping (#1098)
1 parent 4600d98 commit 0b34a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oapi_validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func ValidateRequestFromContext(c *gin.Context, router routers.Router, options *
157157
default:
158158
// This should never happen today, but if our upstream code changes,
159159
// we don't want to crash the server, so handle the unexpected error.
160-
return fmt.Errorf("error validating request: %s", err)
160+
return fmt.Errorf("error validating request: %w", err)
161161
}
162162
}
163163
return nil

0 commit comments

Comments
 (0)