treat s3 permission errors as file-not-found

Signed-off-by: Jonathan Ringer <jonringer117@gmail.com>
This commit is contained in:
Michael Bishop 2020-08-28 10:28:35 -03:00 committed by Jonathan Ringer
parent 1d1a85eb0a
commit 63b3536f50
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -166,7 +166,8 @@ S3Helper::FileTransferResult S3Helper::getObject(
dynamic_cast<std::stringstream &>(result.GetBody()).str()); dynamic_cast<std::stringstream &>(result.GetBody()).str());
} catch (S3Error & e) { } catch (S3Error & e) {
if (e.err != Aws::S3::S3Errors::NO_SUCH_KEY) throw; if ((e.err != Aws::S3::S3Errors::NO_SUCH_KEY) &&
(e.err != Aws::S3::S3Errors::ACCESS_DENIED)) throw;
} }
auto now2 = std::chrono::steady_clock::now(); auto now2 = std::chrono::steady_clock::now();