diff --git a/utilities/xmlrpcpp/src/XmlRpcUtil.cpp b/utilities/xmlrpcpp/src/XmlRpcUtil.cpp index 525c148596..9f9c9faafb 100644 --- a/utilities/xmlrpcpp/src/XmlRpcUtil.cpp +++ b/utilities/xmlrpcpp/src/XmlRpcUtil.cpp @@ -53,7 +53,7 @@ static class DefaultErrorHandler : public XmlRpcErrorHandler { void error(const char* msg) { OutputDebugString(msg); OutputDebugString("\n"); #else - void error(const char*) { + void error(const char* msg) { #endif // As far as I can tell, throwing an exception here is a bug, unless // the intention is that the program should exit. Throughout the code, @@ -64,6 +64,7 @@ static class DefaultErrorHandler : public XmlRpcErrorHandler { // So I'm commenting out the throw. - BPG // //throw std::runtime_error(msg); + defaultLogHandler.log(0, msg); } } defaultErrorHandler;