Better error handling for interpreter.
git-svn-id: svn://10.0.0.236/trunk@49137 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9d23668623
commit
e2eb39f437
@ -1768,6 +1768,13 @@ public final class Context {
|
||||
open = close = colon = -1;
|
||||
}
|
||||
}
|
||||
|
||||
// Not found; so we should try the interpreter data.
|
||||
Context cx = getCurrentContext();
|
||||
if (cx.interpreterLine > 0 && cx.interpreterSourceFile != null) {
|
||||
linep[0] = cx.interpreterLine;
|
||||
return cx.interpreterSourceFile;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -1891,5 +1898,9 @@ public final class Context {
|
||||
private int enterCount;
|
||||
private ListenerCollection listeners;
|
||||
private Hashtable hashtable;
|
||||
|
||||
// For the interpreter to indicate line/source for error reports.
|
||||
int interpreterLine;
|
||||
String interpreterSourceFile;
|
||||
}
|
||||
|
||||
|
||||
@ -1768,6 +1768,13 @@ public final class Context {
|
||||
open = close = colon = -1;
|
||||
}
|
||||
}
|
||||
|
||||
// Not found; so we should try the interpreter data.
|
||||
Context cx = getCurrentContext();
|
||||
if (cx.interpreterLine > 0 && cx.interpreterSourceFile != null) {
|
||||
linep[0] = cx.interpreterLine;
|
||||
return cx.interpreterSourceFile;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -1891,5 +1898,9 @@ public final class Context {
|
||||
private int enterCount;
|
||||
private ListenerCollection listeners;
|
||||
private Hashtable hashtable;
|
||||
|
||||
// For the interpreter to indicate line/source for error reports.
|
||||
int interpreterLine;
|
||||
String interpreterSourceFile;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user