forked from lix-project/hydra
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:
parent
4c1077ff36
commit
995e1922d7
|
@ -1,5 +1,6 @@
|
|||
#include <cmath>
|
||||
|
||||
#include "error.hh"
|
||||
#include "state.hh"
|
||||
#include "hydra-build-result.hh"
|
||||
#include "finally.hh"
|
||||
|
@ -185,7 +186,7 @@ State::StepResult State::doBuildStep(nix::ref<Store> destStore,
|
|||
unlink(result.logFile.c_str());
|
||||
}
|
||||
} catch (...) {
|
||||
ignoreException();
|
||||
ignoreExceptionInDestructor();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue