Update FixerClient exception message

This commit is contained in:
Chris Eager authored and Chris Eager committed 2026-10-02 12:16:52 -04:00
1 parent 99d492c61c
commit 4be8e0bfc8
1 file changed
+1 -1
@@ -38,7 +38,7 @@ public class FixerClient {
HttpResponse.BodyHandlers.ofString());
if (response.statusCode() < 200 || response.statusCode() >= 300) {
throw new FixerException("Bad response: " + response.statusCode() + " " + response.toString());
throw new FixerException("Bad response: " + response.statusCode() + " " + response.toString().replaceAll(apiKey, "***"));
}
final FixerResponse parsedResponse = SystemMapper.jsonMapper().readValue(response.body(), FixerResponse.class);