diff options
author | Anders Kaseorg <andersk@mit.edu> | 2022-06-10 10:49:38 -0700 |
---|---|---|
committer | Anders Kaseorg <andersk@mit.edu> | 2022-06-10 10:52:41 -0700 |
commit | 754cd53faf12a9e900c7ef6cefa4a798fccea573 (patch) | |
tree | d355ab247a0664023f7c08acf5749e41edfa98ce /src/nix-collect-garbage/nix-collect-garbage.cc | |
parent | 45ebaab66594692035f028796200a6db2b1fedaf (diff) |
Add missing rethrows in conditional exception handlers
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'src/nix-collect-garbage/nix-collect-garbage.cc')
-rw-r--r-- | src/nix-collect-garbage/nix-collect-garbage.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix-collect-garbage/nix-collect-garbage.cc b/src/nix-collect-garbage/nix-collect-garbage.cc index af6f1c88c..e413faffe 100644 --- a/src/nix-collect-garbage/nix-collect-garbage.cc +++ b/src/nix-collect-garbage/nix-collect-garbage.cc @@ -37,6 +37,7 @@ void removeOldGenerations(std::string dir) link = readLink(path); } catch (SysError & e) { if (e.errNo == ENOENT) continue; + throw; } if (link.find("link") != std::string::npos) { printInfo(format("removing old generations of profile %1%") % path); |