From 7fa24f4726afb529eaeb6bee9803669fb8f3c31f Mon Sep 17 00:00:00 2001 From: joss17 Date: Fri, 30 Oct 2009 00:37:31 +0000 Subject: [PATCH] add error log for constructor git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1756 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/upnp/UPnPBase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/upnp/UPnPBase.cpp b/libretroshare/src/upnp/UPnPBase.cpp index cb5895c1a..3139ac84e 100644 --- a/libretroshare/src/upnp/UPnPBase.cpp +++ b/libretroshare/src/upnp/UPnPBase.cpp @@ -876,7 +876,7 @@ m_WanService(NULL) std::cerr << "CUPnPControlPoint Constructor UpnpInit finished" << std::endl; #endif if (ret != UPNP_E_SUCCESS) { - std::cerr << "error(UpnpInit): Error code "; + std::cerr << "error(UpnpInit): Error code : "; goto error; } port = UpnpGetServerPort(); @@ -933,9 +933,9 @@ m_WanService(NULL) // Error processing error: - std::cerr << "UpnpFinish called within CUPnPControlPoint constructor." << std::endl; - UpnpFinish(); std::cerr << ret << ": " << m_upnpLib.GetUPnPErrorMessage(ret) << "." << std::endl; + UpnpFinish(); + std::cerr << "UpnpFinish called within CUPnPControlPoint constructor." << std::endl; return; }