diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2007-04-19 05:16:02 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2007-04-19 05:16:02 +0000 |
commit | 2ef5d4c6d81e5008fdb2ae1b4f2ecdd9d9901fd2 (patch) | |
tree | 1d1b222bd6a0caa29c0a02e465842bdf30cfae52 /src/compiler/scala/tools/ant/Scalac.scala | |
parent | e43c7bef06d64b98f00752bd06510768ba37910a (diff) | |
download | scala-2ef5d4c6d81e5008fdb2ae1b4f2ecdd9d9901fd2.tar.gz scala-2ef5d4c6d81e5008fdb2ae1b4f2ecdd9d9901fd2.tar.bz2 scala-2ef5d4c6d81e5008fdb2ae1b4f2ecdd9d9901fd2.zip |
Switching over to position objects from positio...
Switching over to position objects from position type parameters.
Positions are no longer ints.
Diffstat (limited to 'src/compiler/scala/tools/ant/Scalac.scala')
-rw-r--r-- | src/compiler/scala/tools/ant/Scalac.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/compiler/scala/tools/ant/Scalac.scala b/src/compiler/scala/tools/ant/Scalac.scala index 39d4f5e167..b06d916eec 100644 --- a/src/compiler/scala/tools/ant/Scalac.scala +++ b/src/compiler/scala/tools/ant/Scalac.scala @@ -634,17 +634,17 @@ class Scalac extends MatchingTask { "(no error message provided); see the error output for details.") } reporter.printSummary() - if (reporter.errors > 0) + if (reporter.hasErrors) error( "Compile failed with " + - reporter.errors + " error" + - (if (reporter.errors > 1) "s" else "") + + reporter.ERROR.count + " error" + + (if (reporter.ERROR.count > 1) "s" else "") + "; see the compiler error output for details.") - else if (reporter.warnings > 0) + else if (reporter.WARNING.count > 0) log( "Compile suceeded with " + - reporter.warnings + " warning" + - (if (reporter.warnings > 1) "s" else "") + + reporter.WARNING.count + " warning" + + (if (reporter.WARNING.count > 1) "s" else "") + "; see the compiler output for details.") } |