1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 06:52:43 +01:00

Display the diverging paths in case of a realisation mismatch

This commit is contained in:
regnat 2021-06-22 10:46:29 +02:00
parent 40f925b2da
commit 16fb7d8d95
2 changed files with 14 additions and 4 deletions

View file

@ -732,8 +732,13 @@ void LocalStore::registerDrvOutput(const Realisation & info)
.exec();
} else {
throw Error("Trying to register a realisation of '%s', but we already "
"have another one locally",
info.id.to_string());
"have another one locally.\n"
"Local: %s\n"
"Remote: %s",
info.id.to_string(),
printStorePath(oldR->outPath),
printStorePath(info.outPath)
);
}
} else {
state->stmts->RegisterRealisedOutput.use()