1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 21:51:50 +02:00

FSAccessor: Throw InvalidPath

This commit is contained in:
Eelco Dolstra 2016-08-09 11:46:27 +02:00
parent f43823f676
commit 6cb4bdf152
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ struct LocalStoreAccessor : public FSAccessor
{
Path storePath = store->toStorePath(path);
if (!store->isValidPath(storePath))
throw Error(format("path %1% is not a valid store path") % storePath);
throw InvalidPath(format("path %1% is not a valid store path") % storePath);
return store->getRealStoreDir() + std::string(path, store->storeDir.size());
}