Title: [2514] trunk/openejb1/modules/core/src/java/org/openejb/loader/Embedder.java: Improved error handling
Revision
2514
Author
dblevins
Date
2006-02-26 16:59:53 -0500 (Sun, 26 Feb 2006)

Log Message

Improved error handling

Modified Paths


Diff

Modified: trunk/openejb1/modules/core/src/java/org/openejb/loader/Embedder.java (2513 => 2514)

--- trunk/openejb1/modules/core/src/java/org/openejb/loader/Embedder.java	2006-02-26 05:53:47 UTC (rev 2513)
+++ trunk/openejb1/modules/core/src/java/org/openejb/loader/Embedder.java	2006-02-26 21:59:53 UTC (rev 2514)
@@ -64,8 +64,6 @@
 
     private String NOT_DIRECTORY = "The path specified is not a directory.";
 
-    private String NO_DIST = "The path specified is not correct, it does not contain a 'dist' directory.";
-
     private String NO_LIBS = "The path specified is not correct, it does not contain any OpenEJB libraries.";
 
     // TODO: move this part back into the LoaderServlet
@@ -87,7 +85,7 @@
             // The openejb.home must contain a 'lib' directory
             File openejbHomeLibs = new File(openejbHome, "lib");
             if (!openejbHomeLibs.exists())
-                handleError(BAD_HOME + homePath, NO_DIST, INSTRUCTIONS);
+                handleError(BAD_HOME + homePath, NO_LIBS, INSTRUCTIONS);
 
             // The openejb.home there must be openejb*.jar files in the 'dist'
             // directory

Reply via email to