diff --git a/src/lyrics_fetcher.cpp b/src/lyrics_fetcher.cpp index 87c87466..d02f361e 100644 --- a/src/lyrics_fetcher.cpp +++ b/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; }