1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

unshareFilesystem: Do not assume caller

This commit is contained in:
John Ericson 2024-05-22 16:04:14 -04:00
parent bd7a074636
commit d5fdfdc592
2 changed files with 7 additions and 2 deletions

View file

@ -580,7 +580,12 @@ struct curlFileTransfer : public FileTransfer
#endif
#if __linux__
unshareFilesystem();
try {
unshareFilesystem();
} catch (nix::Error & e) {
e.addTrace({}, "in download thread");
throw;
}
#endif
std::map<CURL *, std::shared_ptr<TransferItem>> items;