With OnScriptError event handler tool makers could collect and display the script errors in new and better ways. For example one could create a window that shows all the errors raised
Example of such event handler:
addMissionEventHandler ["OnScriptError", { params ["_errorMsg","_file","_line"]; }];
The event would be called every time there is a script error