mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 14:02:42 +01:00
Apply suggestions from code review
Thanks! Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
parent
8c07ed1dda
commit
53a709535b
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue