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

Allow script author to handle function errors #179

Open
srm09 opened this issue Sep 16, 2020 · 0 comments
Open

Allow script author to handle function errors #179

srm09 opened this issue Sep 16, 2020 · 0 comments

Comments

@srm09
Copy link
Contributor

srm09 commented Sep 16, 2020

Custom starlark directives should not throw an error type. Instead build a generic result which gets returned from each directive. That Would allow the author to decide how they want to address this result.

Example:
When resources directive encounters an error, do not return golang error type.

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