Problem
When scripts error they send the error on the debug channel, publicly for everyone.
Given that we are now getting more advanced and useful errors.
These messages are possibly going to to start becoming sensitive, as they expose information about the script itself.
This mostly affects
SLua
and
LSL/Luau
, it could possibly extend as an issue to the others if their debugging is also improved.
Fix?
I think we need a 3 part solution.
  1. Errors on
    0x7FFFFFFF
    need to go to only the object owner, (and maybe objects owned by said owner?)
  2. Scripts need a debug checkbox/flag?
    --!debug
    ? to enable or disable verbose errors.
  3. ll.RegionSayTo(ll.GetOwner(),0x7FFFFFFF,"debug")
    to also send messages to the viewer like the other chat functions do
The first solves the general problem while writing scripts.
The Second is to prevent exposing sensitive information to end users.
The third to allow creators to send manual debug messages privately as well
Side Effects
This will possibly break content that listens for errors on those channels to perform certain actions.
I would suggest maybe not changing the behavior of
llSay
,
llShout
,
llWhipser
, and
llRegionSay
as if scripts are deliberately and publicly speaking on that channel that behavior may be desired.