aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/goal.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/build/goal.hh')
-rw-r--r--src/libstore/build/goal.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build/goal.hh b/src/libstore/build/goal.hh
index 4ff4a14f8..1bfea8231 100644
--- a/src/libstore/build/goal.hh
+++ b/src/libstore/build/goal.hh
@@ -118,7 +118,7 @@ public:
};
struct [[nodiscard]] Finished {
ExitCode result;
- std::unique_ptr<Error> ex;
+ std::shared_ptr<Error> ex;
bool permanentFailure = false;
bool timedOut = false;
bool hashMismatch = false;
@@ -141,7 +141,7 @@ public:
/**
* Exception containing an error message, if any.
*/
- std::unique_ptr<Error> ex;
+ std::shared_ptr<Error> ex;
explicit Goal(Worker & worker)
: worker(worker)