Skip to content

Add SecureCookie.Err to expose construction errors#91

Open
SAY-5 wants to merge 1 commit into
gorilla:mainfrom
SAY-5:fix/expose-construction-error
Open

Add SecureCookie.Err to expose construction errors#91
SAY-5 wants to merge 1 commit into
gorilla:mainfrom
SAY-5:fix/expose-construction-error

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 12, 2026

New silently swallows configuration errors (invalid hash/block key), so callers cannot detect a misconfigured instance until the first Encode/Decode. This adds an Err() method that reports the stored construction error, the least invasive of the options suggested in the issue. Closes #89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Silent errors on New()

1 participant