Skip to content

Commit

Permalink
Merge pull request #286 from innFactory/feat/updateClientErrorMessage
Browse files Browse the repository at this point in the history
feat: update client error message
  • Loading branch information
MoeQuadrat authored May 15, 2024
2 parents 022fe4e + d5c091d commit c61a281
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private[smithy4play] class SmithyPlayClientEndpoint[Op[_, _, _, _, _], I, E, O,
.map(o => HttpResponse(response.statusCode, headers, o))
.leftMap {
case error: PayloadError =>
SmithyPlayClientEndpointErrorResponse(error.expected.getBytes(), response.statusCode)
SmithyPlayClientEndpointErrorResponse(error.toString().getBytes(), response.statusCode)
case error: MetadataError =>
SmithyPlayClientEndpointErrorResponse(error.getMessage().getBytes(), response.statusCode)
}
Expand Down

0 comments on commit c61a281

Please sign in to comment.