* Log error in XML-RPC method call.

This commit is contained in:
hns 2007-11-08 10:55:33 +00:00
parent d896e79aeb
commit e0b814216e

View file

@ -16,12 +16,14 @@
package helma.scripting.rhino.extensions;
import helma.scripting.rhino.*;
import helma.framework.core.Application;
import helma.scripting.rhino.RhinoCore;
import org.apache.xmlrpc.XmlRpcClient;
import org.mozilla.javascript.*;
import org.apache.xmlrpc.*;
import java.util.*;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.util.Vector;
/**
* An extension to transparently call and serve XML-RPC from Rhino.
@ -136,6 +138,9 @@ public class XmlRpcObject extends BaseFunction {
msg = x.toString();
}
retval.put("error", retval, msg);
Application app = RhinoCore.getCore().getApplication();
app.logError(msg, x);
}
return retval;