]> git.mxchange.org Git - jjobs-ejb.git/commitdiff
The exception's message now contains the thrown exception's message, too.
authorRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 11:31:33 +0000 (13:31 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 11:31:33 +0000 (13:31 +0200)
src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java

index e11b6454efafa94857cfc54c2fd85a2603446a55..57380feeb545060bc53fa77a6c1c60b2316080ae 100644 (file)
@@ -62,7 +62,7 @@ public class JobsEmailDeliveryMessageBean implements MessageListener {
                        this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
                } catch (final NamingException ex) {
                        // Continue to throw
-                       throw new RuntimeException("context.lookup() failed.", ex); //NOI18N
+                       throw new RuntimeException(MessageFormat.format("context.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N
                }
        }