mirror of https://github.com/apache/jclouds.git
wrong AWS message
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1851 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
11bbc6f3c7
commit
2fef8da975
|
@ -33,7 +33,7 @@ public class ReturnNotFoundIfObjectDoesntExist implements Function<Exception, Ac
|
|||
public AccessControlList apply(Exception from) {
|
||||
if (from != null && from instanceof AWSResponseException) {
|
||||
AWSResponseException responseException = (AWSResponseException) from;
|
||||
if ("NoSuchObject".equals(responseException.getError().getCode())) {
|
||||
if ("NoSuchKey".equals(responseException.getError().getCode())) {
|
||||
return AccessControlList.NOT_FOUND;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue