* No need to report both an error to the console and throw and exception.

* Prettier message for uncaught EvaluatorExceptions


git-svn-id: svn://10.0.0.236/trunk@233395 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nboyd%atg.com 2007-08-30 13:48:13 +00:00
parent e74651529f
commit 0fef686226

View File

@ -111,6 +111,8 @@ public class ToolErrorReporter implements ErrorReporter {
msg = getMessage("msg.uncaughtJSException", ex.details());
} else if (ex instanceof EcmaError) {
msg = getMessage("msg.uncaughtEcmaError", ex.details());
} else if (ex instanceof EvaluatorException) {
msg = ex.details();
} else {
msg = ex.toString();
}
@ -138,7 +140,6 @@ public class ToolErrorReporter implements ErrorReporter {
int line, String lineSource,
int lineOffset)
{
error(message, sourceName, line, lineSource, lineOffset);
return new EvaluatorException(message, sourceName, line,
lineSource, lineOffset);
}