aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/goal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/build/goal.cc')
-rw-r--r--src/libstore/build/goal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/goal.cc b/src/libstore/build/goal.cc
index 8f190cede..f4973efc9 100644
--- a/src/libstore/build/goal.cc
+++ b/src/libstore/build/goal.cc
@@ -78,7 +78,7 @@ void Goal::amDone(ExitCode result, std::optional<Error> ex)
if (!waiters.empty())
logError(ex->info());
else
- this->ex = std::move(*ex);
+ this->ex = std::make_unique<Error>(std::move(*ex));
}
for (auto & i : waiters) {