Misleading error messages

Description

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 /<snip>/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. ????

Environment

None

Assignee

Unassigned

Reporter

Jim Mellander

Labels

None

External issue ID

None

Components

Affects versions

Priority

Normal
Configure