From 83c191892d882d7a18e80688a5aebfee7079ff77 Mon Sep 17 00:00:00 2001 From: "norris%netscape.com" Date: Tue, 8 Jun 1999 20:57:19 +0000 Subject: [PATCH] Small reduction in code size. git-svn-id: svn://10.0.0.236/trunk@34248 18797224-902f-48f8-a5cc-f745e15eee43 --- .../org/mozilla/javascript/tools/ToolErrorReporter.java | 8 +------- .../org/mozilla/javascript/tools/ToolErrorReporter.java | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/mozilla/js/rhino/org/mozilla/javascript/tools/ToolErrorReporter.java b/mozilla/js/rhino/org/mozilla/javascript/tools/ToolErrorReporter.java index 6ee2a7dd9a4..597773f259a 100644 --- a/mozilla/js/rhino/org/mozilla/javascript/tools/ToolErrorReporter.java +++ b/mozilla/js/rhino/org/mozilla/javascript/tools/ToolErrorReporter.java @@ -102,13 +102,7 @@ public class ToolErrorReporter implements ErrorReporter { int line, String lineSource, int lineOffset) { - hasReportedErrorFlag = true; - message = formatMessage(message, sourceName, line); - System.err.println(messagePrefix + message); - if (null != lineSource) { - System.err.println(messagePrefix + lineSource); - System.err.println(messagePrefix + buildIndicator(lineOffset)); - } + error(message, sourceName, line, lineSource, lineOffset); return new EvaluatorException(message); } diff --git a/mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/ToolErrorReporter.java b/mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/ToolErrorReporter.java index 6ee2a7dd9a4..597773f259a 100644 --- a/mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/ToolErrorReporter.java +++ b/mozilla/js/rhino/toolsrc/org/mozilla/javascript/tools/ToolErrorReporter.java @@ -102,13 +102,7 @@ public class ToolErrorReporter implements ErrorReporter { int line, String lineSource, int lineOffset) { - hasReportedErrorFlag = true; - message = formatMessage(message, sourceName, line); - System.err.println(messagePrefix + message); - if (null != lineSource) { - System.err.println(messagePrefix + lineSource); - System.err.println(messagePrefix + buildIndicator(lineOffset)); - } + error(message, sourceName, line, lineSource, lineOffset); return new EvaluatorException(message); }