mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 09:49:36 +01:00
Make Git error messages more consistent
This commit is contained in:
parent
2526293171
commit
fb7bcdd554
2 changed files with 9 additions and 9 deletions
|
|
@ -538,7 +538,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"
|
||||
|
|
@ -546,7 +546,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