mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
libutil/source-accessor: custom error if source does not exist
This allows better error handling by catching this error in particular.
This commit is contained in:
parent
5cfa75ea16
commit
f97da4b11c
2 changed files with 3 additions and 1 deletions
|
@ -29,6 +29,8 @@ enum class SymlinkResolution {
|
|||
Full,
|
||||
};
|
||||
|
||||
MakeError(FileNotFound, Error);
|
||||
|
||||
/**
|
||||
* A read-only filesystem abstraction. This is used by the Nix
|
||||
* evaluator and elsewhere for accessing sources in various
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue