Change error notification behaviour



  • It would be useful to have an option not to send error's automatically to email. For example, to have such call

    // At the start of script
    Game.errorTarget("console",false) // default is true
    Game.errorTarget("email",false) // default is true
    Game.errorTarget("array",Memory.myErrorHolder) // default is false
    

    And if error is thrown it goes to appropriate destination. This could

    • solve the request to surpress notifications during active development
    • give possibility to filter errors (by script that inspects array and notifies only if matches to certain types)
    • give possibility to customize notifications (by sending some extra debug info along the error)
    • give more control on bundling (one type error send instantly, others bulk and send later)

  • Dev Team

    There is an option in your Account Settings for that.



  • @Artem akuukis wants to be able to change it programmatically (and presumably mid-script). Having to browse to profile settings is tedious, and if we could change it mid-script then we could email only critical failures.



  • I guess we could just implement our own error handler, with custom notification targets.



  • Yes, I was talking about changing it mid-script