Merge pull request #5749 from GavinRay97/patch-1

Better diagnostics if no valid signature found
This commit is contained in:
Domen Kožar 2022-01-06 08:39:58 +01:00 committed by GitHub
commit bdc577936f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,8 +138,8 @@ void PathSubstitutionGoal::tryNext()
only after we've downloaded the path. */ only after we've downloaded the path. */
if (!sub->isTrusted && worker.store.pathInfoIsUntrusted(*info)) if (!sub->isTrusted && worker.store.pathInfoIsUntrusted(*info))
{ {
warn("substituter '%s' does not have a valid signature for path '%s'", warn("the substitute for '%s' from '%s' is not signed by any of the keys in 'trusted-public-keys'",
sub->getUri(), worker.store.printStorePath(storePath)); worker.store.printStorePath(storePath), sub->getUri());
tryNext(); tryNext();
return; return;
} }