lyrics fetcher: do not add notice about error to curl error messages

there is boolean variable for the success or failure so
if it's false it's already known that an error occured.
master
Andrzej Rybczak 16 years ago
parent 3bb3607399
commit 50581938e7
  1. 6
      src/lyrics_fetcher.cpp

@ -49,8 +49,7 @@ LyricsFetcher::Result LyricsFetcher::fetch(const std::string &artist, const std:
if (code != CURLE_OK)
{
result.second = "Error while fetching lyrics: ";
result.second += curl_easy_strerror(code);
result.second = curl_easy_strerror(code);
return result;
}
@ -105,8 +104,7 @@ LyricsFetcher::Result LyricwikiFetcher::fetch(const std::string &artist, const s
if (code != CURLE_OK)
{
result.second = "Error while fetching lyrics: ";
result.second += curl_easy_strerror(code);
result.second = curl_easy_strerror(code);
return result;
}

Loading…
Cancel
Save