From 4def590d80dd20c853ee65d3322cec09b9f6b025 Mon Sep 17 00:00:00 2001 From: Emma Cypress Pointer-Null Date: Thu, 22 Dec 2022 13:34:08 -0500 Subject: [PATCH] Close #35 --- src/main/java/com/modrinth/minotaur/Util.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/modrinth/minotaur/Util.java b/src/main/java/com/modrinth/minotaur/Util.java index 4cdc810..f22ecc9 100644 --- a/src/main/java/com/modrinth/minotaur/Util.java +++ b/src/main/java/com/modrinth/minotaur/Util.java @@ -85,11 +85,8 @@ static String resolveId(Project project, String projectId, Logger log) throws IO int code = response.getStatusLine().getStatusCode(); if (code != 200) { - ResponseError errorInfo = createGsonInstance().fromJson(EntityUtils.toString(response.getEntity()), ResponseError.class); - if (errorInfo == null) { - errorInfo = new ResponseError(); - } - String error = String.format("Project ID resolution for %s failed! Status: %s Error: %s Reason: %s", projectId, code, errorInfo.getError(), errorInfo.getDescription()); + // TODO make this account for the returned error in Minotaur v3 + String error = String.format("Failed to resolve project ID \"%s\"! Received status code %s", projectId, code); log.error(error); throw new GradleException(error); }