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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user