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

index ffb546fc8a6090871a978877716ffa4395d1aa9d..9113fc60eb9dd1439594855841f8ed8a7643266f 100644 (file)
@@ -62,7 +62,7 @@ public abstract class BaseMailer implements DeliverableEmail {
                        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
                }
        }