-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
How do I get the log for a render or parse attempt? #500
Comments
If want you want is the errors, you can take the live editor as an example: https://mermaidjs.github.io/mermaid-live-editor/ It shows you live error report when you make a syntax mistake: https://mermaidjs.github.io/mermaid-live-editor/#/edit/Z3JhcGggVApBW0NocmlzdG1hc10gLS0-fEdldCBtb25leXwgQihHbyBzaG9wcGluZykKQiAtLT4gQ3tMZXQgbWUgdGhpbmt9CkMgLS0-fE9uZXwgRFtMYXB0b3BdCkMgLS0-fFR3b3wgRVtpUGhvbmVdCkMgLS0-fFRocmVlfCBGW0Nhcl0K/error/UGFyc2UgZXJyb3Igb24gbGluZSAxOgpncmFwaCBUQVtDaHJpc3RtYXNdIC0tPnxHCi0tLS0tLV4KRXhwZWN0aW5nICdESVInLCAnVEFHRU5EJywgJ1RBR1NUQVJUJywgJ1VQJywgJ0RPV04nLCBnb3QgJ0FMUEhBJw You can simply try catch to get the error message: https://github.com/mermaidjs/mermaid-live-editor/blob/fe51c26ecf77027fd882af0c6034b1c99c555601/src/components/Preview.js#L28-L34 |
…mermaid-js#500) Bumps [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss) from 1.17.0 to 1.17.1. - [Release notes](https://github.com/francoismassart/eslint-plugin-tailwindcss/releases) - [Commits](francoismassart/eslint-plugin-tailwindcss@v1.17.0...v1.17.1) --- updated-dependencies: - dependency-name: eslint-plugin-tailwindcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
I want to capture and display errors/diagnostics to users.
Most of the library/API uses a Logger that eventually binds to window.console.debug. I've tried a few things to intercept this in-browser and cant get it to work. If I perform the request server-side, I can call the CLI and capture stdout (there isn't a stderr for errors), just not in the browser.
Is there a recommended way to get this info from the API?
The text was updated successfully, but these errors were encountered: