diff options
author | Antoine Gourlay <antoine@gourlay.fr> | 2014-02-16 14:54:10 +0100 |
---|---|---|
committer | Antoine Gourlay <antoine@gourlay.fr> | 2014-07-01 11:41:57 +0200 |
commit | 5d63ef31c16511df5ce9cbda5d07fd7672844ae2 (patch) | |
tree | 3a45aa129b580364163e6e99598da1291d810ca1 /src | |
parent | fbfce33cb03bc2b41dd0f46fa9f4630036b4f2ca (diff) | |
download | scala-5d63ef31c16511df5ce9cbda5d07fd7672844ae2.tar.gz scala-5d63ef31c16511df5ce9cbda5d07fd7672844ae2.tar.bz2 scala-5d63ef31c16511df5ce9cbda5d07fd7672844ae2.zip |
SI-8292 report error when scaladoc fails to find doclet.
Diffstat (limited to 'src')
-rw-r--r-- | src/scaladoc/scala/tools/nsc/doc/DocFactory.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scaladoc/scala/tools/nsc/doc/DocFactory.scala b/src/scaladoc/scala/tools/nsc/doc/DocFactory.scala index dce52af56a..47ddfb8aa9 100644 --- a/src/scaladoc/scala/tools/nsc/doc/DocFactory.scala +++ b/src/scaladoc/scala/tools/nsc/doc/DocFactory.scala @@ -95,11 +95,11 @@ class DocFactory(val reporter: Reporter, val settings: doc.Settings) { processor val documentError: PartialFunction[Throwable, Unit] = { case NoCompilerRunException => reporter.info(null, "No documentation generated with unsuccessful compiler run", force = false) - case _: ClassNotFoundException => - () + case e @ (_:ClassNotFoundException | _:IllegalAccessException | _:InstantiationException | _:SecurityException | _:ClassCastException) => + reporter.error(null, s"Cannot load the doclet class ${settings.docgenerator.value} (specified with ${settings.docgenerator.name}): $e. Leaving the default settings will generate the html version of scaladoc.") } - /** Generate document(s) for all `files` containing scaladoc documenataion. + /** Generate document(s) for all `files` containing scaladoc documentation. * @param files The list of paths (relative to the compiler's source path, or absolute) of files to document. */ def document(files: List[String]) { def generate() = { |