mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
Apply suggestions from code review
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
This commit is contained in:
parent
f404189368
commit
2dead20924
2 changed files with 2 additions and 13 deletions
|
@ -136,7 +136,7 @@ std::pair<FlakeRef, std::string> parseFlakeRefWithFragment(
|
|||
throw Error("unable to find a flake before encountering git boundary at '%s'", path);
|
||||
else {
|
||||
if (lstat(path).st_dev != device)
|
||||
throw Error("unable to find a flake before encountering filesystem boundary at '%s'", path);
|
||||
throw Error("path '%s' is not part of a flake (neither it nor its parent directories contain a 'flake.nix' file)", origPath);
|
||||
}
|
||||
path = dirOf(path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue