From fb143f4adde793cae96872ff4869665dafc77e1a Mon Sep 17 00:00:00 2001 From: Robsdedude Date: Thu, 20 Jan 2022 10:57:10 +0100 Subject: [PATCH] TestKit: send error message or driver creation error (#1125) Not strictly needed for testing but might make debugging or investigating driver behavior easier. --- .../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;