From bd5126dce84e003a729308d6a973c784d5b50409 Mon Sep 17 00:00:00 2001 From: Hugo Laloge Date: Tue, 13 Sep 2022 13:29:46 +0200 Subject: [PATCH] Log errors in XmlRpcpp --- utilities/xmlrpcpp/src/XmlRpcUtil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;