aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-01-22 10:21:12 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-01-22 15:58:58 +0000
commit53a709535b42197a9abd3fe46406bb186ad6c751 (patch)
tree5abaf281e32a5c9672e7f12056b5da0aff5c612e /src/libstore/build
parent8c07ed1ddad6595cd679181b0b8d78e09fc6d152 (diff)
Apply suggestions from code review
Thanks! Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Diffstat (limited to 'src/libstore/build')
-rw-r--r--src/libstore/build/derivation-goal.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc
index 953e241d8..fa8b99118 100644
--- a/src/libstore/build/derivation-goal.cc
+++ b/src/libstore/build/derivation-goal.cc
@@ -3291,7 +3291,7 @@ void DerivationGoal::registerOutputs()
auto localStoreP = dynamic_cast<LocalStore *>(&worker.store);
if (!localStoreP)
- Unsupported("Can only register outputs with local store");
+ throw Unsupported("can only register outputs with local store, but this is %s", worker.store.getUri());
auto & localStore = *localStoreP;
if (buildMode == bmCheck) {
@@ -3426,7 +3426,7 @@ void DerivationGoal::registerOutputs()
{
auto localStoreP = dynamic_cast<LocalStore *>(&worker.store);
if (!localStoreP)
- Unsupported("Can only register outputs with local store");
+ throw Unsupported("can only register outputs with local store, but this is %s", worker.store.getUri());
auto & localStore = *localStoreP;
ValidPathInfos infos2;