diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/ScalaDoc.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ScalaDoc.scala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/ScalaDoc.scala b/src/compiler/scala/tools/nsc/ScalaDoc.scala index 4354608e10..0549e2c758 100644 --- a/src/compiler/scala/tools/nsc/ScalaDoc.scala +++ b/src/compiler/scala/tools/nsc/ScalaDoc.scala @@ -25,14 +25,14 @@ object ScalaDoc { var reporter: ConsoleReporter = _ - def error(msg: String): Unit = { + private def scalacError(msg: String): Unit = { reporter.error(FakePos("scalac"), msg + "\n scalac -help gives more information") } def process(args: Array[String]): Unit = { val docSettings: doc.Settings = - new doc.Settings(error) + new doc.Settings(scalacError) reporter = new ConsoleReporter(docSettings) { override def hasErrors = false // need to do this so that the Global instance doesn't trash all the symbols just because there was an error @@ -79,7 +79,6 @@ object ScalaDoc { def main(args: Array[String]): Unit = { process(args) - exit(if (reporter.hasErrors) 1 else 0) + system.exit(if (reporter.hasErrors) 1 else 0) } - } |