Merge pull request #10550 from kwoyke/JAVA-4240

JAVA-4240: Add exception's message to the log
This commit is contained in:
Dhawal Kapil 2021-03-13 01:08:35 +05:30 committed by GitHub
commit 71d80d8991
1 changed files with 4 additions and 6 deletions

View File

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