mermaid.cli icon indicating copy to clipboard operation
mermaid.cli copied to clipboard

Wrap asynchronous statements in try & catch blocks to fail gracefully

Open prantlf opened this issue 5 years ago • 2 comments

  • 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.

prantlf avatar Oct 12 '19 12:10 prantlf

Would be nice to have this merged

kivagant-ba avatar Jan 10 '20 12:01 kivagant-ba

Hi guys, development repo as been moved here https://github.com/mermaid-js/mermaid.cli/

NansPellicari avatar Apr 10 '20 07:04 NansPellicari

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.

aloisklink avatar Jul 22 '23 00:07 aloisklink