diff --git a/uppsrc/XmlRpc/Server.cpp b/uppsrc/XmlRpc/Server.cpp index 2a8b3f4ef..80ab02d9c 100644 --- a/uppsrc/XmlRpc/Server.cpp +++ b/uppsrc/XmlRpc/Server.cpp @@ -38,6 +38,11 @@ void ThrowXmlRpcError(int code, const char *s) throw e; } +void ThrowXmlRpcError(const char *s) +{ + ThrowXmlRpcError(-1, s); +} + String XmlRpcExecute(const String& request, const char *group, const char *peeraddr) { XmlParser p(request); diff --git a/uppsrc/XmlRpc/XmlRpc.h b/uppsrc/XmlRpc/XmlRpc.h index 8cc68dfb2..0a2882dea 100644 --- a/uppsrc/XmlRpc/XmlRpc.h +++ b/uppsrc/XmlRpc/XmlRpc.h @@ -253,6 +253,7 @@ INITBLOCK { Register(#x, xmlrpc##x, group); } \ void xmlrpc##x(XmlRpcData& rpc) void ThrowXmlRpcError(int code, const char *s); +void ThrowXmlRpcError(const char *s); class XmlRpcCall { bool shorted;