summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2010-11-18 17:46:38 +0000
committermichelou <michelou@epfl.ch>2010-11-18 17:46:38 +0000
commitc5c02cf4ff257bfb23386048ef9b3129eab2baf2 (patch)
tree4d1c08aa60c9d7f603e9d006f1bd851253bf6f00 /src/compiler
parent13a20ba71ae1805c7361e95d66360bd0a9a7f3d8 (diff)
downloadscala-c5c02cf4ff257bfb23386048ef9b3129eab2baf2.tar.gz
scala-c5c02cf4ff257bfb23386048ef9b3129eab2baf2.tar.bz2
scala-c5c02cf4ff257bfb23386048ef9b3129eab2baf2.zip
removed duplicated error message for bad compil...
removed duplicated error message for bad compiler options made some cleanups in detach plugin code
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/settings/MutableSettings.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala
index a59bc776aa..9b7b838da4 100644
--- a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala
+++ b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala
@@ -87,7 +87,7 @@ class MutableSettings(val errorFn: String => Unit) extends AbsSettings with Scal
/** Returns any unprocessed arguments.
*/
- def parseParams(args: List[String]): List[String] = {
+ protected def parseParams(args: List[String]): List[String] = {
// verify command exists and call setter
def tryToSetIfExists(
cmd: String,
@@ -95,7 +95,8 @@ class MutableSettings(val errorFn: String => Unit) extends AbsSettings with Scal
setter: (Setting) => (List[String] => Option[List[String]])
): Option[List[String]] =
lookupSetting(cmd) match {
- case None => errorFn("Parameter '" + cmd + "' is not recognised by Scalac.") ; None
+ //case None => errorFn("Parameter '" + cmd + "' is not recognised by Scalac.") ; None
+ case None => None //error reported in processArguments
case Some(cmd) => setter(cmd)(args)
}