From ee1234c15cdcb427dbd4828e0add09d02cd606c9 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 7 Oct 2024 18:06:43 +0200 Subject: [PATCH] `ignoreException` has been split into two The Finally part is a destructor, so using `ignoreExceptionInDestructor` seems to be the correct choice here. --- src/hydra-queue-runner/builder.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/builder.cc b/src/hydra-queue-runner/builder.cc index 3f340c72..15bf8f10 100644 --- a/src/hydra-queue-runner/builder.cc +++ b/src/hydra-queue-runner/builder.cc @@ -1,5 +1,6 @@ #include +#include "error.hh" #include "state.hh" #include "hydra-build-result.hh" #include "finally.hh" @@ -185,7 +186,7 @@ State::StepResult State::doBuildStep(nix::ref destStore, unlink(result.logFile.c_str()); } } catch (...) { - ignoreException(); + ignoreExceptionInDestructor(); } } });