diff options
author | Michael Bishop <cleverca22@gmail.com> | 2020-08-28 10:28:35 -0300 |
---|---|---|
committer | Jonathan Ringer <jonringer117@gmail.com> | 2020-12-11 09:49:24 -0800 |
commit | 63b3536f50f124cdcd7592b344eac157a1439d42 (patch) | |
tree | 543e70738857cc1d08b01c816f67759a41ee9853 /src/libstore | |
parent | 1d1a85eb0adb54cd4aa01bede9bcf0835f6cbb65 (diff) |
treat s3 permission errors as file-not-found
Signed-off-by: Jonathan Ringer <jonringer117@gmail.com>
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/s3-binary-cache-store.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/s3-binary-cache-store.cc b/src/libstore/s3-binary-cache-store.cc index 27253fc12..d6edafd7e 100644 --- a/src/libstore/s3-binary-cache-store.cc +++ b/src/libstore/s3-binary-cache-store.cc @@ -166,7 +166,8 @@ S3Helper::FileTransferResult S3Helper::getObject( dynamic_cast<std::stringstream &>(result.GetBody()).str()); } 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(); |