From 15f4c4af976c56c76be7f45d306618f56157461c Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 06 Jun 2007 20:06:24 +0000
Subject: [PATCH] The commit insures that in all cases instantiation of ApplicationException is done with a localized message since this the message contained in this exception is exposed to end users.

---
 opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ServerHealthChecker.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ServerHealthChecker.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ServerHealthChecker.java
index 41319e0..e676791 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ServerHealthChecker.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ServerHealthChecker.java
@@ -29,6 +29,7 @@
 
 import org.opends.quicksetup.Installation;
 import org.opends.quicksetup.ApplicationException;
+import org.opends.quicksetup.i18n.ResourceProvider;
 import org.opends.server.util.ServerConstants;
 
 import java.util.List;
@@ -85,7 +86,8 @@
         throw (ApplicationException)e;
       } else {
         throw new ApplicationException(ApplicationException.Type.APPLICATION,
-                "Server health check failed: " + e.getLocalizedMessage(), e);
+                ResourceProvider.getInstance().getMsg(
+                        "error-server-health-check-failure"), e);
       }
     } finally {
       if (control != null) {

--
Gitblit v1.10.0