add error log for constructor

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1756 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2009-10-30 00:37:31 +00:00
parent 7a7a4fc8d7
commit 7fa24f4726

View File

@ -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;
}