aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-10-07 17:28:43 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-10-07 17:28:43 +0200
commite705c2429445a4a05076fc067bb349bdd6752bd9 (patch)
tree61aa7dfb7fbcf1950fc249ba827eb61c8931a856 /src/libstore/build.cc
parentc43e882f54b5f09278dfb0d315239531c0676b4e (diff)
Tweak error messages
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index fa7283588..0585905e0 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -2355,7 +2355,8 @@ void DerivationGoal::startBuilder()
worker.store.computeFSClosure(worker.store.toStorePath(i.second.source).first, closure);
} catch (InvalidPath & e) {
} catch (Error & e) {
- throw Error("while processing 'sandbox-paths': %s", e.what());
+ e.addTrace({}, "while processing 'sandbox-paths'");
+ throw;
}
for (auto & i : closure) {
auto p = worker.store.printStorePath(i);
@@ -3809,7 +3810,7 @@ void DerivationGoal::runChild()
throw Error("unsupported builtin function '%1%'", string(drv->builder, 8));
_exit(0);
} catch (std::exception & e) {
- writeFull(STDERR_FILENO, "error: " + string(e.what()) + "\n");
+ writeFull(STDERR_FILENO, e.what() + "\n");
_exit(1);
}
}