Skip to content

Commit

Permalink
Print Rhino/Java stack traces on exception in objj
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Robinson committed Oct 4, 2008
1 parent a0c594a commit 05b922d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Tools/objj/objj.js
Expand Up @@ -58,7 +58,16 @@ try {
print("OBJJ EXCEPTION: " + e);
print(" Name: " + e.name);
print(" Message: " + e.message);
print(" Java: " + e.javaException);
print(" File: " + e.fileName);
print(" Line: " + e.lineNumber);
if (e.javaException)
{
print(" Java Exception: " + e.javaException);
e.javaException.printStackTrace();
}
if (e.rhinoException)
{
print(" Rhino Exception: " + e.rhinoException);
e.rhinoException.printStackTrace();
}
}

0 comments on commit 05b922d

Please sign in to comment.