Use logError() instead of logEvent() to log original compilation errors.

This commit is contained in:
hns 2005-03-24 22:03:51 +00:00
parent fde3b335db
commit 514d9a353c

View file

@ -803,11 +803,7 @@ public final class RhinoCore implements ScopeProvider {
} }
} catch (Exception e) { } catch (Exception e) {
app.logEvent("Error parsing file " + sourceName + ": " + e); app.logError("Error parsing file " + sourceName, e);
// also write to standard out unless we're logging to it anyway
if (!"console".equalsIgnoreCase(app.getProperty("logDir"))) {
System.err.println("Error parsing file " + sourceName + ": " + e);
}
// mark prototype as broken // mark prototype as broken
if (type.error == null) { if (type.error == null) {
type.error = e.getMessage(); type.error = e.getMessage();