about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-02-09T14·05+0100
committerEelco Dolstra <edolstra@gmail.com>2018-02-09T14·06+0100
commit960e9c560e335c65d378805fdb2594e7079a0c45 (patch)
treea116ecd4dfe834844c65917e2976e39277e11235 /src
parentaa02cdc33ceccce35e56d61535fdb2c55f13cc44 (diff)
nix: Ensure that the user sees errors from substituters
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 9f669f7e4645..392b494e65eb 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -3688,8 +3688,8 @@ void SubstitutionGoal::tryNext()
         && !sub->isTrusted
         && !info->checkSignatures(worker.store, worker.store.publicKeys))
     {
-        printInfo(format("warning: substituter '%s' does not have a valid signature for path '%s'")
-            % sub->getUri() % storePath);
+        printError("warning: substituter '%s' does not have a valid signature for path '%s'",
+            sub->getUri(), storePath);
         tryNext();
         return;
     }
@@ -3779,7 +3779,7 @@ void SubstitutionGoal::finished()
     try {
         promise.get_future().get();
     } catch (Error & e) {
-        printInfo(e.msg());
+        printError(e.msg());
 
         /* Try the next substitute. */
         state = &SubstitutionGoal::tryNext;