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.
This commit is contained in:
Andrzej Rybczak
2010-08-10 01:39:51 +02:00
parent 3bb3607399
commit 50581938e7

View File

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