karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject [1/2] git commit: KARAF-2730 - Provide full exception details when karaf doesn't startup
Date Thu, 23 Jan 2014 18:27:39 GMT
Updated Branches:
  refs/heads/karaf-2.3.x d4fad1628 -> 4474b7589
  refs/heads/karaf-2.x 24c8b590d -> 3571ff09d


KARAF-2730 - Provide full exception details when karaf doesn't startup


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/3571ff09
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/3571ff09
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/3571ff09

Branch: refs/heads/karaf-2.x
Commit: 3571ff09d06660c7a38892fe517fe02004a6700c
Parents: 24c8b59
Author: Jonathan Anstey <janstey@gmail.com>
Authored: Thu Jan 23 14:51:07 2014 -0330
Committer: Jonathan Anstey <janstey@gmail.com>
Committed: Thu Jan 23 14:51:07 2014 -0330

----------------------------------------------------------------------
 main/src/main/java/org/apache/karaf/main/Main.java           | 2 +-
 main/src/main/java/org/apache/karaf/main/SimpleFileLock.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/3571ff09/main/src/main/java/org/apache/karaf/main/Main.java
----------------------------------------------------------------------
diff --git a/main/src/main/java/org/apache/karaf/main/Main.java b/main/src/main/java/org/apache/karaf/main/Main.java
index 16a7d22..359dcfd 100644
--- a/main/src/main/java/org/apache/karaf/main/Main.java
+++ b/main/src/main/java/org/apache/karaf/main/Main.java
@@ -559,7 +559,7 @@ public class Main {
             } catch (IOException ioe){
                 main.destroy();
                 main.setExitCode(-1);
-                System.err.println("Karaf can't startup, make sure the log file can be accessed
and written by the user starting Karaf : " + ioe.getMessage());
+                System.err.println("Karaf can't startup, make sure the log file can be accessed
and written by the user starting Karaf : " + ioe);
             } catch (Throwable ex) {
                 main.destroy();
                 main.setExitCode(-1);

http://git-wip-us.apache.org/repos/asf/karaf/blob/3571ff09/main/src/main/java/org/apache/karaf/main/SimpleFileLock.java
----------------------------------------------------------------------
diff --git a/main/src/main/java/org/apache/karaf/main/SimpleFileLock.java b/main/src/main/java/org/apache/karaf/main/SimpleFileLock.java
index 568e071..5531f30 100644
--- a/main/src/main/java/org/apache/karaf/main/SimpleFileLock.java
+++ b/main/src/main/java/org/apache/karaf/main/SimpleFileLock.java
@@ -50,7 +50,7 @@ public class SimpleFileLock implements Lock {
             file = new File(props.getProperty(PROPERTY_LOCK_DIR), "lock");
             lockFile = new RandomAccessFile(file, "rw");
         } catch (IOException ioe){
-            throw new RuntimeException("Karaf can't startup, make sure the log file can be
accessed and written by the user starting Karaf : " + ioe.getMessage());
+            throw new RuntimeException("Karaf can't startup, make sure the log file can be
accessed and written by the user starting Karaf : " + ioe);
         } catch (Exception e){
             throw new RuntimeException("Could not create file lock", e);
         }


Mime
View raw message