Name exp in the errInvalidFormField comment (closes #72)
check / check (push) Successful in 2m41s

parseExpires wraps errInvalidFormField for exp, so its comment names exp
alongside q.

Model: opus-5-5
This commit is contained in:
2026-09-28 17:43:34 +00:00
parent 004ccf3fc8
commit 6735b42e55
+3 -3
View File
@@ -18,9 +18,9 @@ import (
"sneak.berlin/go/pixa/internal/templates"
)
// errInvalidFormField reports a generator form field, or the q parameter of
// /v1/image/, whose value is non-numeric or out of range. The offending field
// name is wrapped in so the response can name it.
// errInvalidFormField reports a generator form field, or the q or exp
// parameter of /v1/image/, whose value is non-numeric or out of range. The
// offending field name is wrapped in so the response can name it.
var errInvalidFormField = errors.New("invalid")
// Bounds for the generator's quality and ttl fields; the quality bounds also