[Pkg-owncloud-commits] [owncloud-client] 58/211: unreachable --version code made reachable. error message improved.

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Oct 25 09:10:26 UTC 2014


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 07bcaaebf950138b0180fa54b7c659144dd5530d
Author: Jürgen Weigert <jw at owncloud.com>
Date:   Sun Oct 12 19:28:13 2014 +0200

    unreachable --version code made reachable.
    error message improved.
---
 src/owncloudcmd/owncloudcmd.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/owncloudcmd/owncloudcmd.cpp b/src/owncloudcmd/owncloudcmd.cpp
index 94267e4..f6bfbb2 100644
--- a/src/owncloudcmd/owncloudcmd.cpp
+++ b/src/owncloudcmd/owncloudcmd.cpp
@@ -171,7 +171,7 @@ void parseOptions( const QStringList& app_args, CmdOptions *options )
     int argCount = args.count();
 
     if( argCount < 3 ) {
-        if (argCount > 2) {
+        if (argCount >= 2) {
             const QString option = args.at(1);
             if (option == "-v" || option == "--version") {
                 showVersion();
@@ -192,7 +192,7 @@ void parseOptions( const QStringList& app_args, CmdOptions *options )
         options->target_url.replace(0, 4, "owncloud");
     options->source_dir = args.takeLast();
     if( !QFile::exists( options->source_dir )) {
-        std::cerr << "Source dir does not exists." << std::endl;
+        std::cerr << "Source dir '" << qPrintable(options->source_dir) << "' does not exist." << std::endl;
         exit(1);
     }
 

-- 
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