Add description for changelog download error

This commit is contained in:
crschnick
2025-08-25 13:21:43 +00:00
parent 0931f62381
commit d788a2bce9

View File

@@ -64,7 +64,8 @@ public class AppDownloads {
var client = HttpHelper.client();
var response = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() >= 400) {
throw new IOException(response.body());
var s = response.body();
throw new IOException("Changelog not found" + (s != null && !s.isEmpty() ? ": " + s : ""));
}
var json = JacksonMapper.getDefault().readTree(response.body());
var changelog = json.required("changelog").asText();