1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-03 23:51:00 +01:00

Merge pull request #11604 from NixOS/mergify/bp/2.24-maintenance/pr-11600

HttpBinaryCacheStore::getFile(): Fix uncaught exception (backport #11600)
This commit is contained in:
Eelco Dolstra 2024-09-27 13:26:21 +02:00 committed by GitHub
commit 048cfe51c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
} }
/** /**