Skip to content

fix(js/ts): make Exception.ToString() return the message instead of "Exception"#4635

Merged
MangelMaxime merged 2 commits into
mainfrom
fix/exception-tostring-message
Jun 9, 2026
Merged

fix(js/ts): make Exception.ToString() return the message instead of "Exception"#4635
MangelMaxime merged 2 commits into
mainfrom
fix/exception-tostring-message

Conversation

@MangelMaxime

Copy link
Copy Markdown
Member

No description provided.

klofberg and others added 2 commits June 8, 2026 22:26
…eption"

Since #4197 System.Exception compiles to Fable's own Exception class rather
than native Error. That class had no toString(), so ex.ToString() fell back
to the constructor name ("Exception") instead of the message. Add a toString()
returning the message, matching the Dart and Python targets.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MangelMaxime MangelMaxime merged commit 4c36f76 into main Jun 9, 2026
31 checks passed
@MangelMaxime MangelMaxime deleted the fix/exception-tostring-message branch June 9, 2026 09:40
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