diff options
author | regnat <rg@regnat.ovh> | 2021-10-11 10:47:02 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-10-11 10:51:22 +0200 |
commit | 7466048d397ed33d4bc28b6910c834cf1a17b0cb (patch) | |
tree | 6131097a87ab62a9ea88b7d8f9574920970538bd /src/libstore | |
parent | 01e9f046a8f8fafb4d084153d4b30dd3a8d7aef5 (diff) |
(partially) Revert "Don't copy in rethrow"
This reverts some parts of commit
8430a8f0866e4463a891ccce62779ea9ac0f3b38 which was trying to rethrow
some exceptions while we weren’t in the context of a `catch` block,
causing some weird “terminate called without an active exception”
errors.
Fix #5368
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build/local-derivation-goal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc index 3fc156108..8d245f84a 100644 --- a/src/libstore/build/local-derivation-goal.cc +++ b/src/libstore/build/local-derivation-goal.cc @@ -948,7 +948,7 @@ void LocalDerivationGoal::startBuilder() FdSource source(builderOut.readSide.get()); auto ex = readError(source); ex.addTrace({}, "while setting up the build environment"); - throw; + throw ex; } debug("sandbox setup: " + msg); msgs.push_back(std::move(msg)); |