From d5c091d213415b3f58161512249eab8eef3a28dd Mon Sep 17 00:00:00 2001 From: Lintterer Date: Wed, 15 May 2024 11:07:11 +0200 Subject: [PATCH] feat: update client error message --- .../smithy4play/client/SmithyPlayClientEndpoint.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala b/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala index 74c1d947..0f96e64f 100644 --- a/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala +++ b/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala @@ -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) }