mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
Make Git error messages more consistent
(cherry picked from commit f15681df26
)
This commit is contained in:
parent
b4813a1b55
commit
c45f97b9f4
1 changed files with 2 additions and 2 deletions
|
@ -537,7 +537,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"
|
||||
|
@ -545,7 +545,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