output debug info in JS function invocation if
debug is set to true.
This commit is contained in:
parent
41b057d7ee
commit
e04f7652ba
1 changed files with 5 additions and 2 deletions
|
@ -9,7 +9,7 @@ import java.rmi.*;
|
||||||
import java.rmi.server.*;
|
import java.rmi.server.*;
|
||||||
import helma.framework.*;
|
import helma.framework.*;
|
||||||
import helma.scripting.*;
|
import helma.scripting.*;
|
||||||
import helma.scripting.fesi.*;
|
import helma.scripting.fesi.ESUser;
|
||||||
import helma.objectmodel.*;
|
import helma.objectmodel.*;
|
||||||
import helma.objectmodel.db.*;
|
import helma.objectmodel.db.*;
|
||||||
import helma.xmlrpc.*;
|
import helma.xmlrpc.*;
|
||||||
|
@ -742,7 +742,10 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IRep
|
||||||
}
|
}
|
||||||
if (reval != null) try {
|
if (reval != null) try {
|
||||||
return reval.invokeDirectFunction (obj, func, args);
|
return reval.invokeDirectFunction (obj, func, args);
|
||||||
} catch (Exception x) {}
|
} catch (Exception x) {
|
||||||
|
if (debug)
|
||||||
|
System.err.println ("ERROR invoking function "+func+": "+x);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue