pako has a tendency to throw obscure error strings e.g. "too many length or distance symbols", which can make gracefully handling bad input difficult when an error is thrown from parseLoginRequest.
This wraps the inflation step to allow throwing a dedicated error with a static message for inflation issues, while still making the original error available.
Feature Request in PR form.
pako
has a tendency to throw obscure error strings e.g. "too many length or distance symbols", which can make gracefully handling bad input difficult when an error is thrown fromparseLoginRequest
. This wraps the inflation step to allow throwing a dedicated error with a static message for inflation issues, while still making the original error available.