jayson-lennon/pylon

Rhai crashes are not displayed at the default log level

Opened this issue · 0 comments

Certain types of malformed Rhai scripts will crash the interpreter. When this occurs, no logs are displayed unless running with -vv. These errors should be displayed at any verbosity level.

Rhai code that can cause a crash:

rules.add_lint(
  "DENY",
  "",
  "**",
  |doc| {
    let crash = whoops;    // `whoops` not found
    true
  }
);