From 677ca58efb2d759eb674e2e419756afc0e94927d Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 27 Apr 2010 21:31:05 +0000 Subject: A small error message improvement suggested at ... A small error message improvement suggested at #3092. No review. --- src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala') diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index 1cfee481bc..497cfc398b 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -2630,7 +2630,8 @@ self => } else if (isStatSep) { in.nextToken() } else { - syntaxErrorOrIncomplete("illegal start of statement", true) + val addendum = if (isModifier) " (no modifiers allowed here)" else "" + syntaxErrorOrIncomplete("illegal start of statement" + addendum, true) } } stats.toList -- cgit v1.2.3