bafolts / tplant

Typescript to plantuml
https://segmentationfaults.com/tplant/default.html
GNU General Public License v3.0
270 stars 35 forks source link

Silent failure when output directory does not exist #51

Open david-err opened 4 years ago

david-err commented 4 years ago

Hi, great library. A small issue I ran into, is that tplant will not throw an error/warning when the output directory does not exist. It simply says Done in x secs. while nothing is generated.

In my case, I wanted to output to reports/uml/uml.svg. reports/uml did not exist, reports/xyz did, though.

Suggested solution:

  1. Generate output directory if not exists
  2. Warn/error when output dir could not be created.

Cheers