display more detailed info if connection to MPD couldn't be estabilished

This commit is contained in:
Andrzej Rybczak
2011-11-13 17:32:17 +01:00
parent 00a7743a34
commit 62157909d5

View File

@@ -42,7 +42,7 @@ bool ConnectToMPD()
{ {
if (!Mpd.Connect()) if (!Mpd.Connect())
{ {
std::cout << "Cannot connect to mpd: " << Mpd.GetErrorMessage() << std::endl; std::cout << "Couldn't connect to MPD (host = " << Mpd.GetHostname() << ", port = " << Mpd.GetPort() << "): " << Mpd.GetErrorMessage() << std::endl;
return false; return false;
} }
return true; return true;