nastra commented on code in PR #14927:
URL: https://github.com/apache/iceberg/pull/14927#discussion_r2732896420


##########
core/src/main/java/org/apache/iceberg/rest/ErrorHandlers.java:
##########
@@ -297,7 +309,7 @@ public void accept(ErrorResponse error) {
           throw new ServiceUnavailableException("Service unavailable: %s", 
error.message());
       }
 
-      throw new RESTException("Unable to process: %s", error.message());
+      throw createRESTException(error);

Review Comment:
   same as mentioned in 
https://github.com/apache/iceberg/pull/14927#discussion_r2732890496. We should 
handle inconsistencies between impl/spec in a separate PR as otherwise people 
reviewing will wonder why behavioral changes are being introduced when the PR 
title says that it's only adding additional information to the exception message



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to