Skip to content

Commit

Permalink
TestKit: send error message or driver creation error (neo4j#1125)
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.
  • Loading branch information
robsdedude authored and injectives committed Jan 27, 2022
1 parent 47667e9 commit 5c81775
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 5c81775

Please sign in to comment.