diff options
Diffstat (limited to 'sources/scalac/util/OptionParser.java')
-rw-r--r-- | sources/scalac/util/OptionParser.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/scalac/util/OptionParser.java b/sources/scalac/util/OptionParser.java index 4796c96f93..c2c3af6e6f 100644 --- a/sources/scalac/util/OptionParser.java +++ b/sources/scalac/util/OptionParser.java @@ -8,6 +8,8 @@ package scalac.util; +import ch.epfl.lamp.util.Position; + import java.text.Format; import java.text.MessageFormat; import java.util.List; @@ -106,11 +108,11 @@ public class CommandParser { } public void error(String message) { - reporter.error(product + ": " + message); + reporter.error(new Position(product), message); } public void warning(String message) { - reporter.warning(product + ": " + message); + reporter.warning(new Position(product), message); } } |