Use logError() instead of logEvent() to log original compilation errors.
This commit is contained in:
parent
fde3b335db
commit
514d9a353c
1 changed files with 1 additions and 5 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue