HttpBinaryCacheStore::getFile(): Don't throw an exception
This violates the noexcept specification. Fixes #6445.
This commit is contained in:
parent
ec07a70979
commit
b8faa83742
|
@ -161,7 +161,12 @@ protected:
|
|||
void getFile(const std::string & path,
|
||||
Callback<std::optional<std::string>> callback) noexcept override
|
||||
{
|
||||
checkEnabled();
|
||||
try {
|
||||
checkEnabled();
|
||||
} catch (...) {
|
||||
callback.rethrow();
|
||||
return;
|
||||
}
|
||||
|
||||
auto request(makeRequest(path));
|
||||
|
||||
|
|
Loading…
Reference in a new issue