mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
HttpBinaryCacheStore::getFile(): Don't throw an exception
This violates the noexcept specification. Fixes #6445.
This commit is contained in:
parent
ec07a70979
commit
b8faa83742
1 changed files with 6 additions and 1 deletions
|
@ -161,7 +161,12 @@ protected:
|
||||||
void getFile(const std::string & path,
|
void getFile(const std::string & path,
|
||||||
Callback<std::optional<std::string>> callback) noexcept override
|
Callback<std::optional<std::string>> callback) noexcept override
|
||||||
{
|
{
|
||||||
checkEnabled();
|
try {
|
||||||
|
checkEnabled();
|
||||||
|
} catch (...) {
|
||||||
|
callback.rethrow();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto request(makeRequest(path));
|
auto request(makeRequest(path));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue