Skip to content

Fix error handling for non-Error objects in catch blocks#156

Merged
seanmcne merged 2 commits intomasterfrom
fixErrorMessageForInvalidDefaultValue
Jan 9, 2026
Merged

Fix error handling for non-Error objects in catch blocks#156
seanmcne merged 2 commits intomasterfrom
fixErrorMessageForInvalidDefaultValue

Conversation

@seanmcne
Copy link
Owner

@seanmcne seanmcne commented Jan 9, 2026

Copilot AI and others added 2 commits January 9, 2026 08:54
* Initial plan

* Add getErrorMessage helper and update error handling in catch blocks

Co-authored-by: seanmcne <2292260+seanmcne@users.noreply.github.com>

* Fix getErrorMessage to properly handle null/undefined values

Co-authored-by: seanmcne <2292260+seanmcne@users.noreply.github.com>

* Add safety handling for JSON.stringify to prevent circular reference errors

Co-authored-by: seanmcne <2292260+seanmcne@users.noreply.github.com>

* Add e.name fallback for Error objects to provide more meaningful messages

Co-authored-by: seanmcne <2292260+seanmcne@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: seanmcne <2292260+seanmcne@users.noreply.github.com>
* Initial plan
* Fix Number validation for settings with empty max values
* Add undefined check to maxNumber handling based on code review feedback
@seanmcne seanmcne changed the title Fix error handling for non-Error objects in catch blocks (#155) Fix error handling for non-Error objects in catch blocks Jan 9, 2026
@seanmcne seanmcne merged commit 4e21279 into master Jan 9, 2026
3 checks passed
@seanmcne seanmcne deleted the fixErrorMessageForInvalidDefaultValue branch January 16, 2026 14:30
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