mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 16:16:16 +02:00
mention nix-store --query --roots when a path cannot be deleted
This commit is contained in:
parent
103ad1598c
commit
58a85fa462
1 changed files with 5 additions and 1 deletions
|
@ -791,7 +791,11 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
|
||||||
assertStorePath(i);
|
assertStorePath(i);
|
||||||
tryToDelete(state, i);
|
tryToDelete(state, i);
|
||||||
if (state.dead.find(i) == state.dead.end())
|
if (state.dead.find(i) == state.dead.end())
|
||||||
throw Error(format("cannot delete path '%1%' since it is still alive") % i);
|
throw Error(format(
|
||||||
|
"cannot delete path '%1%' since it is still alive. "
|
||||||
|
"To find out why use: "
|
||||||
|
"nix-store --query --roots"
|
||||||
|
) % i);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (options.maxFreed > 0) {
|
} else if (options.maxFreed > 0) {
|
||||||
|
|
Loading…
Reference in a new issue