Skip to content

Fix $try, custom function errors and crashes - #421

Open
Daaisukidayo wants to merge 1 commit into
tryforge:devfrom
Daaisukidayo:dev
Open

Daaisukidayo wants to merge 1 commit into
tryforge:devfrom
Daaisukidayo:dev

Conversation

@Daaisukidayo

Copy link
Copy Markdown
Contributor
  • $try catches raw exceptions and runs catch only on errors. $stop, $break, $continue, $onlyIf and $return pass through it
  • Custom functions pass errors to the caller through a new throwErrors flag in IRunnable, $try and silent operator work with them
  • Silent operator now works at any depth. Raw errors still go to console
  • $callLocalFunction passes errors up instead of printing them as text
  • $setTimeout, $setInterval, $async, $wsOn, $wsSend and $await filters log errors to console instead of losing them or crashing
  • JSON functions can no longer reach Object.prototype
  • Fixed $advancedBar crashing the process, length is capped at 4096
  • Fixed $setChannelArchiveDuration crashing on API errors and always returning true

… JSON functions and crashes in $advancedBar, $setChannelArchiveDuration, websocket callbacks and $await filters
@Berk404
Berk404 requested a review from aggelos-007 November 4, 2026 19:39

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant