Skip to content

Commit

Permalink
TestKit: send error message or driver creation error (#1125) (#1131)
Browse files Browse the repository at this point in the history
Not strictly needed for testing but might make debugging or investigating
driver behavior easier.

Co-authored-by: Robsdedude <rouven.bauer@neo4j.com>
  • Loading branch information
injectives and robsdedude authored Jan 27, 2022
1 parent 47667e9 commit 4679140
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private Optional<TestkitResponse> 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;
Expand Down

0 comments on commit 4679140

Please sign in to comment.