nacx commented on a change in pull request #75:
URL: https://github.com/apache/jclouds/pull/75#discussion_r440392758



##########
File path: 
apis/chef/src/main/java/org/jclouds/chef/handlers/ChefErrorHandler.java
##########
@@ -57,9 +57,7 @@ public void handleError(HttpCommand command, HttpResponse 
response) {
                exception = new AuthorizationException(message, exception);
                break;
             case 404:
-               if (!command.getCurrentRequest().getMethod().equals("DELETE")) {
-                  exception = new ResourceNotFoundException(message, 
exception);
-               }
+               exception = new ResourceNotFoundException(message, exception);

Review comment:
       Oh, I see that it is because of a test. I'd say the test is wrong, not 
this, so I'd just change the test and keep the current behavior.




----------------------------------------------------------------
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.

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


Reply via email to