Skip to content

Commit 960e9c5

Browse files
committed
nix: Ensure that the user sees errors from substituters
1 parent aa02cdc commit 960e9c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstore/build.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3688,8 +3688,8 @@ void SubstitutionGoal::tryNext()
36883688
&& !sub->isTrusted
36893689
&& !info->checkSignatures(worker.store, worker.store.publicKeys))
36903690
{
3691-
printInfo(format("warning: substituter '%s' does not have a valid signature for path '%s'")
3692-
% sub->getUri() % storePath);
3691+
printError("warning: substituter '%s' does not have a valid signature for path '%s'",
3692+
sub->getUri(), storePath);
36933693
tryNext();
36943694
return;
36953695
}
@@ -3779,7 +3779,7 @@ void SubstitutionGoal::finished()
37793779
try {
37803780
promise.get_future().get();
37813781
} catch (Error & e) {
3782-
printInfo(e.msg());
3782+
printError(e.msg());
37833783

37843784
/* Try the next substitute. */
37853785
state = &SubstitutionGoal::tryNext;

0 commit comments

Comments
 (0)