From 53f82e5c969e3a3d5a790a30753d2e2b96528e66 Mon Sep 17 00:00:00 2001 From: Sude Date: Sat, 16 Mar 2013 21:16:58 +0200 Subject: [PATCH] inform the user if login was successful --- src/downloader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/downloader.cpp b/src/downloader.cpp index 8d5a5f0..5fd6a57 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -102,6 +102,10 @@ int Downloader::login() std::cout << "HTTP: Login failed" << std::endl; return 1; } + else + { + std::cout << "HTTP: Login successful" << std::endl; + } // Login to API if (!gogAPI->login(email, password)) { @@ -110,6 +114,7 @@ int Downloader::login() } else { + std::cout << "API: Login successful" << std::endl; // Save token and secret to config file std::ofstream ofs(config.sConfigFilePath.c_str()); if (ofs)