diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2023-05-24 08:33:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 08:33:27 +0200 |
commit | 6e4570234d5ac63a9483fb7f7aabaa1d17561a3a (patch) | |
tree | e53da7609b600e8f7926c8a5c26ed31e2e4f8e4b /src | |
parent | a420ccc6a8d1ceee8a413f96c61af0c968b1c255 (diff) | |
parent | 303858afad8f4084c8b15d66ba02ee083452bb73 (diff) |
Merge pull request #8390 from oxalica/fix/long-path-error-msg
Fix typo in error message of too long store path
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/path.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/path.cc b/src/libstore/path.cc index 46be54281..552e83114 100644 --- a/src/libstore/path.cc +++ b/src/libstore/path.cc @@ -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') |