ignoreException has been split into two

The Finally part is a destructor, so using `ignoreExceptionInDestructor`
seems to be the correct choice here.
This commit is contained in:
Maximilian Bosch 2024-10-07 18:06:43 +02:00 committed by Yureka
parent 7c7078cccf
commit ee1234c15c

View file

@ -1,5 +1,6 @@
#include <cmath> #include <cmath>
#include "error.hh"
#include "state.hh" #include "state.hh"
#include "hydra-build-result.hh" #include "hydra-build-result.hh"
#include "finally.hh" #include "finally.hh"
@ -185,7 +186,7 @@ State::StepResult State::doBuildStep(nix::ref<Store> destStore,
unlink(result.logFile.c_str()); unlink(result.logFile.c_str());
} }
} catch (...) { } catch (...) {
ignoreException(); ignoreExceptionInDestructor();
} }
} }
}); });