mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
Merge pull request #8390 from oxalica/fix/long-path-error-msg
Fix typo in error message of too long store path
This commit is contained in:
commit
6e4570234d
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@ static void checkName(std::string_view path, std::string_view name)
|
||||||
if (name.empty())
|
if (name.empty())
|
||||||
throw BadStorePath("store path '%s' has an empty name", path);
|
throw BadStorePath("store path '%s' has an empty name", path);
|
||||||
if (name.size() > StorePath::MaxPathLen)
|
if (name.size() > StorePath::MaxPathLen)
|
||||||
throw BadStorePath("store path '%s' has a name longer than '%d characters",
|
throw BadStorePath("store path '%s' has a name longer than %d characters",
|
||||||
StorePath::MaxPathLen, path);
|
path, StorePath::MaxPathLen);
|
||||||
// See nameRegexStr for the definition
|
// See nameRegexStr for the definition
|
||||||
for (auto c : name)
|
for (auto c : name)
|
||||||
if (!((c >= '0' && c <= '9')
|
if (!((c >= '0' && c <= '9')
|
||||||
|
|
Loading…
Reference in a new issue