]> git.mxchange.org Git - addressbook-lib.git/blobdiff - src/org/mxchange/addressbook/validator/addressbook/AddressbookIdValidator.java
The exception's message now contains the thrown exception's message, too.
[addressbook-lib.git] / src / org / mxchange / addressbook / validator / addressbook / AddressbookIdValidator.java
index 75c753ae688bb62710e16682c067c44b96538063..d97d8ac62d74c91f26a97ef0fa52db95379794ba 100644 (file)
@@ -72,7 +72,7 @@ public class AddressbookIdValidator extends BaseLongValidator {
                        this.addressbookBean = (AddressbookSessionBeanRemote) context.lookup("java:global/addressbook-ejb/addressbook!org.mxchange.addressbook.model.addressbook.AddressbookSessionBeanRemote"); //NOI18N
                } catch (final NamingException ex) {
                        // Continue to throw it
-                       throw new RuntimeException("context.lookup() failed.", ex); //NOI18N
+                       throw new RuntimeException(MessageFormat.format("context.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N
                }
        }