mirror of
https://github.com/NixOS/nix.git
synced 2025-02-16 17:02:28 +00:00
Fix typo in error message of too long store path
(cherry picked from commit303858afad
) (cherry picked from commit8f74170e5e
) (cherry picked from commit21d5e846c1
)
This commit is contained in:
parent
c863accfd6
commit
e22b261d82
@ -9,8 +9,8 @@ static void checkName(std::string_view path, std::string_view name)
|
||||
if (name.empty())
|
||||
throw BadStorePath("store path '%s' has an empty name", path);
|
||||
if (name.size() > StorePath::MaxPathLen)
|
||||
throw BadStorePath("store path '%s' has a name longer than '%d characters",
|
||||
StorePath::MaxPathLen, path);
|
||||
throw BadStorePath("store path '%s' has a name longer than %d characters",
|
||||
path, StorePath::MaxPathLen);
|
||||
// See nameRegexStr for the definition
|
||||
for (auto c : name)
|
||||
if (!((c >= '0' && c <= '9')
|
||||
|
Loading…
Reference in New Issue
Block a user