mirror of
https://github.com/NixOS/nix
synced 2025-06-26 15:51:15 +02:00
Merge pull request #11600 from DeterminateSystems/fix-uncaught-exception
HttpBinaryCacheStore::getFile(): Fix uncaught exception
This commit is contained in:
commit
08deebddf2
1 changed files with 19 additions and 18 deletions
|
@ -169,10 +169,6 @@ protected:
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
checkEnabled();
|
checkEnabled();
|
||||||
} catch (...) {
|
|
||||||
callback.rethrow();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto request(makeRequest(path));
|
auto request(makeRequest(path));
|
||||||
|
|
||||||
|
@ -191,6 +187,11 @@ protected:
|
||||||
callbackPtr->rethrow();
|
callbackPtr->rethrow();
|
||||||
}
|
}
|
||||||
}});
|
}});
|
||||||
|
|
||||||
|
} catch (...) {
|
||||||
|
callback.rethrow();
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue