From 50581938e7e6c6d957b6bd2a808712efbe6679b9 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Tue, 10 Aug 2010 01:39:51 +0200 Subject: [PATCH] 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. --- src/lyrics_fetcher.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; }