Print better message if there is an error when processing auto-install/start
bundles. (FELIX-1189)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@779978 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/main/src/main/java/org/apache/felix/main/AutoActivator.java b/main/src/main/java/org/apache/felix/main/AutoActivator.java
index 10dce76..c234fd8 100644
--- a/main/src/main/java/org/apache/felix/main/AutoActivator.java
+++ b/main/src/main/java/org/apache/felix/main/AutoActivator.java
@@ -123,7 +123,8 @@
                 }
                 catch (Exception ex)
                 {
-                    System.err.println("Auto-properties install: " + ex);
+                    System.err.println("Auto-properties install: "
+                        + ex + ((ex.getCause() != null) ? " - " + ex.getCause() : ""));
                 }
             }
         }
@@ -148,7 +149,8 @@
                     }
                     catch (Exception ex)
                     {
-                        System.err.println("Auto-properties start: " + ex);
+                        System.err.println("Auto-properties start: "
+                            + ex + ((ex.getCause() != null) ? " - " + ex.getCause() : ""));
                     }
                 }
             }