From 96fa4208d42b8e9a3d3ffe4fbb7d7ae349b1b740 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 02 May 2008 10:59:15 +0000
Subject: [PATCH] Fix for issue 3221 (uninstall returns 0 but fails when LDAP connection is rejected) There was a bug in the manner the option forceOnError.  Appart from that there were some issues due to the fact that most of the methods in UninstallCliHelper do not throw exceptions.  I have updated some interfaces and now the behavior is the following:

---
 opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java b/opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java
index 9fc4fdb..047e081 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/QuickSetupCli.java
@@ -144,6 +144,13 @@
         returnValue = ReturnCode.USER_DATA_ERROR;
       }
     }
+    catch (ApplicationException ae)
+    {
+      System.err.println();
+      System.err.println(ae.getLocalizedMessage());
+      System.err.println();
+      returnValue = ae.getType();
+    }
     return returnValue;
   }
 

--
Gitblit v1.10.0