[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdevplatform/1.7] util/duchainify: duchainify: Exit cleanly on invalid user input
From: Kevin Funk <kfunk () kde ! org>
Date: 2014-07-30 13:41:05
Message-ID: E1XCU7t-0002x2-3J () scm ! kde ! org
[Download RAW message or body]
Git commit a2c0b164891eca5a11c984bb69ab3216024f872c by Kevin Funk.
Committed on 30/07/2014 at 13:40.
Pushed by kfunk into branch '1.7'.
duchainify: Exit cleanly on invalid user input
M +3 -0 util/duchainify/main.cpp
http://commits.kde.org/kdevplatform/a2c0b164891eca5a11c984bb69ab3216024f872c
diff --git a/util/duchainify/main.cpp b/util/duchainify/main.cpp
index c759ed8..757ac73 100644
--- a/util/duchainify/main.cpp
+++ b/util/duchainify/main.cpp
@@ -117,6 +117,7 @@ void Manager::init()
else{
std::cerr << "Wrong feature-string given\n";
QCoreApplication::exit(2);
+ return;
}
}
if(m_args->isSet("force-update"))
@@ -132,6 +133,7 @@ void Manager::init()
if(!ok) {
std::cerr << "bad thread count\n";
QCoreApplication::exit(3);
+ return;
}
}
@@ -156,6 +158,7 @@ void Manager::init()
} else {
std::cout << "no files added to the background parser" << std::endl;
QCoreApplication::exit(0);
+ return;
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic