mermaid.cli
mermaid.cli copied to clipboard
Wrap asynchronous statements in try & catch blocks to fail gracefully
- Exit the process on failure instead of hanging.
- Prevent warnings about unhandled exceptions printed by Node.js.
- Print a message about the failed phase and the detailed exception message.
- Ensure a non-zero exit code.
Attempts to fix #41. Better reviewed with the white-space changes hidden.
Would be nice to have this merged
Hi guys, development repo as been moved here https://github.com/mermaid-js/mermaid.cli/
Development has moved to the https://github.com/mermaid-js/mermaid-cli repo, please re-open your issue there if it's still relevant.
The package has also been renamed on NPM to @mermaid-js/mermaid-cli
, so you may need to run npm uninstall mermaid.cli && npm install @mermaid-js/mermaid-cli
to get the latest version of this package.