wrong AWS message

git-svn-id: http://jclouds.googlecode.com/svn/trunk@1851 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-08-09 22:56:16 +00:00
parent 11bbc6f3c7
commit 2fef8da975
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}