Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error handling #71

Open
LordAro opened this issue Jun 16, 2021 · 0 comments
Open

Better error handling #71

LordAro opened this issue Jun 16, 2021 · 0 comments

Comments

@LordAro
Copy link
Contributor

LordAro commented Jun 16, 2021

Currently, if you make an error in the mermaid text, the error is only displayed in the devtools console, which isn't particularly user friendly.

With #69 & 8.10.2, it appears to have gotten worse, with no console message and only the following image being displayed:

image

which is even less helpful.

Can we get a better way of displaying errors?

The mermaid docs mention a parseError function, which seems designed for this purpose - https://mermaid-js.github.io/mermaid/#/usage?id=advanced-usage . I had a brief play, but couldn't get it to work with the existing initialize & init workflow in ext.mermaid.js (which appears to be deprecated anyway, according to the documentation?)

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

No branches or pull requests

1 participant