mirror of
https://github.com/samsonjs/arq_restore.git
synced 2026-03-25 09:25:53 +00:00
if AWS region not found, return an error
This commit is contained in:
parent
f0d9fc2cd4
commit
5b288accbe
1 changed files with 4 additions and 0 deletions
|
|
@ -697,6 +697,10 @@
|
|||
HSLogError(@"failed to get location of %@: %@", s3BucketName, myError);
|
||||
} else {
|
||||
AWSRegion *awsRegion = [AWSRegion regionWithLocation:location];
|
||||
if (awsRegion == nil) {
|
||||
SETNSERROR([self errorDomain], -1, @"unknown location: %@", location);
|
||||
return nil;
|
||||
}
|
||||
HSLogDebug(@"awsRegion for s3BucketName %@: %@", s3BucketName, location);
|
||||
|
||||
NSURL *s3Endpoint = [awsRegion s3EndpointWithSSL:YES];
|
||||
|
|
|
|||
Loading…
Reference in a new issue