hoaproject / Devtools

The Hoa\Devtools library.
https://hoa-project.net/
6 stars 6 forks source link

Handle error in devtools:documentation #40

Closed vonglasow closed 7 years ago

vonglasow commented 7 years ago

When we try to generate documentation on library without documentation (example https://github.com/hoaproject/Stream), we raise an error like

vendor/bin/hoa devtools:documentation --open
Selected language: En.

Hoa\Devtools\Bin\Documentation::main(): (1) Directory /tmp/Stream does not contain documentation.
in /tmp/Stream/vendor/hoa/devtools/Bin/Documentation.php at line 166.

We need to handle the error to display a better message like

There is no documentation yet, sorry.