asciidoctor / asciidoctorj

:coffee: Java bindings for Asciidoctor. Asciidoctor on the JVM!
http://asciidoctor.org
Apache License 2.0
625 stars 173 forks source link

Verify existence of template_dirs directory #231

Open aalmiray opened 9 years ago

aalmiray commented 9 years ago

Based on https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/81#issuecomment-66122387 it looks like the value of template_dirs is not properly validated. Other file based values should be checked too.

lordofthejars commented 9 years ago

Yes it seems we should check if directories exists or not. If not let's throw an exception so no Ruby stack traces are shown.

mojavelinux commented 9 years ago

Let's verify the directory in Asciidoctor Ruby as well. No harm in checking it at both layers for an improved error message, of course.