Skip to content

Commit

Permalink
TestKit: send error message or driver creation error (#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 Jan 20, 2022
1 parent 7caa225 commit fb143f4
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 fb143f4

Please sign in to comment.