From 6735b42e5587864988c8fef794434702e5068e7d Mon Sep 17 00:00:00 2001 From: sneak Date: Mon, 28 Sep 2026 17:43:34 +0000 Subject: [PATCH] Name exp in the errInvalidFormField comment (closes #72) parseExpires wraps errInvalidFormField for exp, so its comment names exp alongside q. Model: opus-5-5 --- internal/handlers/auth.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/handlers/auth.go b/internal/handlers/auth.go index 171b900..a0ad493 100644 --- a/internal/handlers/auth.go +++ b/internal/handlers/auth.go @@ -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