mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-22 15:40:31 -04:00
Add description for changelog download error
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user