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

detect invalid custom behaviors on load: #450

Merged
merged 1 commit into from
Dec 13, 2023
Merged

Conversation

ikreymer
Copy link
Member

  • on first page, attempt to evaluate the behavior class to ensure it compiles
  • if fails to compile, log exception with fatal and exit
  • update behavior gathering code to keep track of behavior filename
  • tests: add test for invalid behavior which causes crawl to exit with fatal exit code (17)

- on first page, attempt to evaluate the behavior class to ensure it compiles
- if fails to compile, log exception with fatal and exit
- update behavior gathering code to keep track of behavior filename
- tests: add test for invalid behavior which causes crawl to exit with fatal exit code (17)
Copy link
Member

@tw4l tw4l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and working well, thanks!

@tw4l tw4l merged commit 703835a into dev-1.0.0 Dec 13, 2023
8 checks passed
@tw4l tw4l deleted the detect-invalid-behaviors branch December 13, 2023 20:14
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