[Pkg-owncloud-commits] [owncloud-client] 120/218: ConnectioNValidator: Fix redundant error message

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Oct 17 14:30:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit cb6522e7354ecd20c572c195cd57a49033753065
Author: Markus Goetz <markus at woboq.com>
Date:   Sat Sep 12 20:57:49 2015 -0400

    ConnectioNValidator: Fix redundant error message
    
    For #3794
---
 src/libsync/connectionvalidator.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libsync/connectionvalidator.cpp b/src/libsync/connectionvalidator.cpp
index 80be8f8..2be08c4 100644
--- a/src/libsync/connectionvalidator.cpp
+++ b/src/libsync/connectionvalidator.cpp
@@ -142,7 +142,7 @@ void ConnectionValidator::slotNoStatusFound(QNetworkReply *reply)
     if( reply && ! _account->credentials()->stillValid(reply)) {
         _errors.append(tr("Authentication error: Either username or password are wrong."));
     }  else {
-        _errors.append(tr("Unable to connect to %1").arg(_account->url().toString()));
+        //_errors.append(tr("Unable to connect to %1").arg(_account->url().toString()));
         _errors.append( reply->errorString() );
     }
     reportResult( StatusNotFound );
@@ -150,7 +150,7 @@ void ConnectionValidator::slotNoStatusFound(QNetworkReply *reply)
 
 void ConnectionValidator::slotJobTimeout(const QUrl &url)
 {
-    _errors.append(tr("Unable to connect to %1").arg(url.toString()));
+    //_errors.append(tr("Unable to connect to %1").arg(url.toString()));
     _errors.append(tr("timeout"));
     reportResult( Timeout );
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list