display more detailed info if connection to MPD couldn't be estabilished
This commit is contained in:
@@ -42,7 +42,7 @@ bool ConnectToMPD()
|
||||
{
|
||||
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 true;
|
||||
|
||||
Reference in New Issue
Block a user