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

The empty policy is crashed during flow.fail #109

Open
mishindm opened this issue May 23, 2018 · 0 comments
Open

The empty policy is crashed during flow.fail #109

mishindm opened this issue May 23, 2018 · 0 comments

Comments

@mishindm
Copy link

When a policy has empty 'properties:' or 'required:' attributes defined, but the 'throw:' property is populated in policy.yaml, the attempt to call flow.fail ends with crash in flow-engine on:

// 1. check the policy's own handler
if (currTask[type].catch) {

as currTask is null.

Adding some property is fixing the problem.

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

No branches or pull requests

1 participant