Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

[SPOOL-403] Do not crash when we receive an unexpected error from pushy_common #147

Merged
merged 1 commit into from
Nov 7, 2016

Conversation

marcparadise
Copy link
Contributor

@marcparadise marcparadise commented Nov 4, 2016

Adds handling for other validation errors that can come out of pushy_messaging:parse_messages.

I will be dropping the temporary commit that updates the pushy_common branch once pushy_common#23 merges. Left it unDCO'd so that I wouldn't forget.

@smith
Copy link
Contributor

smith commented Nov 4, 2016

LGTM. Good to merge once we update the pushy_common dep.

@marcparadise marcparadise force-pushed the SPOOL-403/configurable-body-size branch from 14dd31f to ee9fa28 Compare November 4, 2016 16:20
When pushy_messaging:parse_message returned an error tuple for reasons
other than signature or timestamp (such as message too large) it would
crash with a badmatch.

This change accepts the error and allows the FSM to continue processing
further messages.

Signed-off-by: Marc Paradise <[email protected]>
@marcparadise marcparadise force-pushed the SPOOL-403/configurable-body-size branch from ee9fa28 to 450be59 Compare November 7, 2016 16:42
@marcparadise marcparadise merged commit 62b3447 into master Nov 7, 2016
@markan markan removed the in progress label Nov 7, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants