mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Make Git error messages more consistent
This commit is contained in:
parent
277c29a64b
commit
f15681df26
1 changed files with 2 additions and 2 deletions
|
@ -535,7 +535,7 @@ struct GitInputScheme : InputScheme
|
|||
return [repoPath{std::move(repoPath)}](const CanonPath & path) -> RestrictedPathError {
|
||||
if (nix::pathExists(repoPath / path.rel()))
|
||||
return RestrictedPathError(
|
||||
"File '%1%' in the repository %2% is not tracked by Git.\n"
|
||||
"Path '%1%' in the repository %2% is not tracked by Git.\n"
|
||||
"\n"
|
||||
"To make it visible to Nix, run:\n"
|
||||
"\n"
|
||||
|
@ -543,7 +543,7 @@ struct GitInputScheme : InputScheme
|
|||
path.rel(),
|
||||
repoPath);
|
||||
else
|
||||
return RestrictedPathError("path '%s' does not exist in Git repository %s", path, repoPath);
|
||||
return RestrictedPathError("Path '%s' does not exist in Git repository %s.", path.rel(), repoPath);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue