JAVA-4240: Add exception's message to the log

This commit is contained in:
Krzysztof Woyke 2021-03-11 20:39:47 +01:00
parent c9bc95a5e2
commit 47db80077d
1 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ public class JavaRMIIntegrationTest {
MessengerServiceImpl server = new MessengerServiceImpl();
server.createStubAndBind();
} catch (RemoteException e) {
fail("Exception Occurred");
fail("Exception Occurred: " + e);
}
}
@ -35,9 +35,9 @@ public class JavaRMIIntegrationTest {
String expectedMessage = "Server Message";
assertEquals(responseMessage, expectedMessage);
} catch (RemoteException e) {
fail("Exception Occurred");
fail("Exception Occurred: " + e);
} catch (NotBoundException nb) {
fail("Exception Occurred");
fail("Exception Occurred: " + e);
}
}