Files
vscode/extensions/mermaid-markdown-features/preview-src/shared
dddcfa2f02 Show real Mermaid error instead of "[object Object]" (#325148)
Show real Mermaid error instead of [object Object]

Mermaid rejects parse/render failures (e.g. from mermaid.run) with a plain
object of shape { str, message, hash, error } rather than an Error instance.
createMermaidErrorElement previously fell back to String(error) for non-Error
throwables, rendering the unhelpful [object Object] and hiding the real syntax
error. Extract the message (or Mermaid's str) from such objects before falling
back.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-09 16:29:39 +00:00
..
2026-05-20 14:23:11 -07:00