Skip to content

Handle error when the encrypted master payload can't be parsed - #18

Merged
contested-space merged 1 commit into
mainfrom
upkeep/handle-master-payload-parsing-error
Oct 31, 2025
Merged

Handle error when the encrypted master payload can't be parsed#18
contested-space merged 1 commit into
mainfrom
upkeep/handle-master-payload-parsing-error

Conversation

@contested-space

Copy link
Copy Markdown
Collaborator

Problem:
When the encrypted master payload doesn't match the specification, MasterPayload.decrypt/2 fails the binary pattern matching attempt and raises an exception.

Solution:
Gracefully handle the badmatch case and return an informative error instead.

@contested-space
contested-space merged commit 1bcce3d into main Oct 31, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants