Skip to main content

warn_script

Function warn_script 

Source
pub fn warn_script(message: impl Into<String>)
Expand description

Raise a script warning from outside the engine.

The runtime, not the engine, decides who receives an emitted event and how far a chain of them may run, so it is the only layer that can notice an event with nowhere to go. The warning belongs in this sink anyway: to the overlay and to rux check it is one more thing wrong with the script, and a second sink would let those two disagree about what was said.