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

Misleading error messages #167

Open
jsiwek opened this Issue Sep 17, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@jsiwek
Copy link
Member

jsiwek commented Sep 17, 2018

Moved from https://bro-tracker.atlassian.net/browse/BIT-1899

Created by Jim Mellander at 2018-01-30T16:01:00.896-0600:

If a function is left open inadvertantly at the end of a script by omitting the final closing brace, a misleading error message is generated about the next script being loaded. Example: leaving the final brace off of non-cluster.bro (sumstats), has resulted inr in the following message:

error in //bro/base/frameworks/tunnels/./main.bro, line 8: syntax error, at or near "module"

presumably due to the function still being open when the next policy script is loaded. Wouldn't it be more reasonable to check at the end of each script when loaded that there are no dangling functions, expressions, etc. ????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment