kbendick commented on a change in pull request #4201:
URL: https://github.com/apache/iceberg/pull/4201#discussion_r812560092



##########
File path: 
core/src/main/java/org/apache/iceberg/rest/responses/ErrorResponseParser.java
##########
@@ -85,8 +85,9 @@ public static ErrorResponse fromJson(String json) {
   }
 
   public static ErrorResponse fromJson(JsonNode jsonNode) {
-    Preconditions.checkArgument(jsonNode != null && jsonNode.isObject() && 
jsonNode.has(ERROR),
-        "Cannot parse missing field: error");
+    Preconditions.checkArgument(jsonNode != null && jsonNode.isObject(),
+        "Cannot parse %s from non-object value", ERROR);

Review comment:
       Updated to log the object instead of just `ERROR`. Was a copy-pasta 
mistake. Good catch!




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to