Fix for issue number 5692
authorKaustubh Welankar <kaustubh.welankar@hotmail.com>
Fri, 14 Jul 2017 11:20:49 +0000 (16:50 +0530)
committerKaustubh Welankar <kaustubh.welankar@hotmail.com>
Fri, 14 Jul 2017 11:20:49 +0000 (16:50 +0530)
src/cmd/cmd.cpp

index 5baeb8a8bebc7269140708b771fe60fcc52289a3..d748612ec37fb787628b1ba258899024966d271d 100644 (file)
@@ -442,6 +442,11 @@ int main(int argc, char **argv)
     loop.exec();
 #endif
 
+    if (job->reply()->error() != QNetworkReply::NoError){
+        std::cout<<"Authentication Error\n";
+        return EXIT_FAILURE;
+    }
+
     // much lower age than the default since this utility is usually made to be run right after a change in the tests
     SyncEngine::minimumFileAgeForUpload = 0;