jaywcjlove / idoc

:book: Simple document generation tool! Dependence Node.js run.
https://git.io/idoc
MIT License
283 stars 65 forks source link

Error handeling issue #64

Open exil0867 opened 2 years ago

exil0867 commented 2 years ago

This tool works perfectly except it does not handle errors in case the input directory does not exist or does not contain any Markdown files.

Example:

image

It results in an empty dist folder. image

It is expected to throw an error which is very important because we plan to use this tool in a CI environment meaning it could fail silently and we'd have no idea whether the compilation worked or not!

jaywcjlove commented 1 year ago

Because I generate documentation from a single Markdown file, I didn't throw an exception. Sorry for the delayed response.