From 467914054bb0e5f934579c5df2220eaf81a8b17c Mon Sep 17 00:00:00 2001 From: injectives <11927660+injectives@users.noreply.github.com> Date: Thu, 27 Jan 2022 14:47:02 +0200 Subject: [PATCH] TestKit: send error message or driver creation error (#1125) (#1131) Not strictly needed for testing but might make debugging or investigating driver behavior easier. Co-authored-by: Robsdedude --- .../neo4j/org/testkit/backend/messages/requests/NewDriver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testkit-backend/src/main/java/neo4j/org/testkit/backend/messages/requests/NewDriver.java b/testkit-backend/src/main/java/neo4j/org/testkit/backend/messages/requests/NewDriver.java index 96a19ae7af..d0fec6e805 100644 --- a/testkit-backend/src/main/java/neo4j/org/testkit/backend/messages/requests/NewDriver.java +++ b/testkit-backend/src/main/java/neo4j/org/testkit/backend/messages/requests/NewDriver.java @@ -242,7 +242,7 @@ private Optional handleExceptionAsErrorResponse( TestkitState t String id = testkitState.newId(); String errorType = e.getClass().getName(); response = Optional.of( - DriverError.builder().data( DriverError.DriverErrorBody.builder().id( id ).errorType( errorType ).build() ).build() + DriverError.builder().data( DriverError.DriverErrorBody.builder().id( id ).errorType( errorType ).msg( e.getMessage() ).build() ).build() ); } return response;