mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
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:
parent
7a7a4fc8d7
commit
7fa24f4726
@ -876,7 +876,7 @@ m_WanService(NULL)
|
|||||||
std::cerr << "CUPnPControlPoint Constructor UpnpInit finished" << std::endl;
|
std::cerr << "CUPnPControlPoint Constructor UpnpInit finished" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
if (ret != UPNP_E_SUCCESS) {
|
if (ret != UPNP_E_SUCCESS) {
|
||||||
std::cerr << "error(UpnpInit): Error code ";
|
std::cerr << "error(UpnpInit): Error code : ";
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
port = UpnpGetServerPort();
|
port = UpnpGetServerPort();
|
||||||
@ -933,9 +933,9 @@ m_WanService(NULL)
|
|||||||
|
|
||||||
// Error processing
|
// Error processing
|
||||||
error:
|
error:
|
||||||
std::cerr << "UpnpFinish called within CUPnPControlPoint constructor." << std::endl;
|
|
||||||
UpnpFinish();
|
|
||||||
std::cerr << ret << ": " << m_upnpLib.GetUPnPErrorMessage(ret) << "." << std::endl;
|
std::cerr << ret << ": " << m_upnpLib.GetUPnPErrorMessage(ret) << "." << std::endl;
|
||||||
|
UpnpFinish();
|
||||||
|
std::cerr << "UpnpFinish called within CUPnPControlPoint constructor." << std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user