HttpBinaryCacheStore::getFile(): Don't throw an exception

This violates the noexcept specification.

Fixes #6445.
This commit is contained in:
Eelco Dolstra 2022-05-30 13:24:04 +02:00
parent ec07a70979
commit b8faa83742
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -161,7 +161,12 @@ protected:
void getFile(const std::string & path,
Callback<std::optional<std::string>> callback) noexcept override
{
try {
checkEnabled();
} catch (...) {
callback.rethrow();
return;
}
auto request(makeRequest(path));