androiddeployqt: make it easier to diagnose problems
authorPaul Olav Tvete <paul.tvete@digia.com>
Tue, 1 Oct 2013 13:59:59 +0000 (15:59 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 2 Oct 2013 07:48:28 +0000 (09:48 +0200)
Enumerate the enum so we don't have to count the values
each time we need to make sense of the return code.

Change-Id: Ibe168798fb167659688519b2cd833a1894a9deec
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/androiddeployqt/main.cpp

index bc37740..7ad97ac 100644 (file)
@@ -1854,22 +1854,22 @@ bool copyGdbServer(const Options &options)
 enum ErrorCode
 {
     Success,
-    SyntaxErrorOrHelpRequested,
-    CannotReadInputFile,
-    CannotCopyAndroidTemplate,
-    CannotReadDependencies,
-    CannotCopyGnuStl,
-    CannotCopyQtFiles,
-    CannotFindApplicationBinary,
-    CannotCopyGdbServer,
-    CannotStripLibraries,
-    CannotCopyAndroidExtraLibs,
-    CannotCopyAndroidSources,
-    CannotUpdateAndroidFiles,
-    CannotCreateAndroidProject,
-    CannotBuildAndroidProject,
-    CannotSignPackage,
-    CannotInstallApk
+    SyntaxErrorOrHelpRequested = 1,
+    CannotReadInputFile = 2,
+    CannotCopyAndroidTemplate = 3,
+    CannotReadDependencies = 4,
+    CannotCopyGnuStl = 5,
+    CannotCopyQtFiles = 6,
+    CannotFindApplicationBinary = 7,
+    CannotCopyGdbServer = 8,
+    CannotStripLibraries = 9,
+    CannotCopyAndroidExtraLibs = 10,
+    CannotCopyAndroidSources = 11,
+    CannotUpdateAndroidFiles = 12,
+    CannotCreateAndroidProject = 13,
+    CannotBuildAndroidProject = 14,
+    CannotSignPackage = 15,
+    CannotInstallApk = 16
 };
 
 int main(int argc, char *argv[])