Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix #24] Make short-circuiting for anomalies optional #38

Merged
merged 1 commit into from
Apr 9, 2019

Conversation

arichiardi
Copy link
Owner

A user of the library might not need to use anomalies but just need to throw on
exceptions. This patch makes the anomaly machinery optional.

When the :anomaly? config key is truthy we now enable the functionality.

The patch is Breaking as it also changes the signature of
fonda.core/execute for a more node-friendly callback style - on-exception
first then on-success.

A user of the library might not need to use anomalies but just need to throw on
exceptions. This patch makes the anomaly machinery optional.

When the :anomaly? config key is truthy we now enable the functionality.

The patch is *Breaking* as it also changes the signature of fonda.core/execute
for a more node-friendly callback style - on-exception first then on-success.
@arichiardi arichiardi merged commit c0789d2 into master Apr 9, 2019
@arichiardi arichiardi deleted the optional-anomaly branch April 9, 2019 16:28
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