Skip to content

Catch exceptions in script lifecycle methods. - #293

Merged
dli7319 merged 1 commit into
google:mainfrom
dli7319:catch_exceptions
May 19, 2026
Merged

Catch exceptions in script lifecycle methods.#293
dli7319 merged 1 commit into
google:mainfrom
dli7319:catch_exceptions

Conversation

@dli7319

@dli7319 dli7319 commented May 19, 2026

Copy link
Copy Markdown
Collaborator

This catches all exceptions in script lifecycle methods and logs them as an error instead of crashing the update loop.

This is controlled by options.catchScriptExceptions which is now true by default.

This catches all exceptions in script lifecycle methods and logs them as an error instead of crashing the update loop.

This is controlled by `options.catchScriptExceptions` which is now true by default.
@dli7319
dli7319 requested a review from ruofeidu May 19, 2026 21:31

@ruofeidu ruofeidu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you!

@dli7319
dli7319 merged commit 8856ab4 into google:main May 19, 2026
4 checks passed
@dli7319
dli7319 deleted the catch_exceptions branch May 19, 2026 21:35
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.

2 participants