mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Merge pull request #13089 from NixOS/mergify/bp/2.28-maintenance/pr-13087
libutil: Use correct argument to Error format ctor (backport #13087)
This commit is contained in:
commit
357a0f639c
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ void parseTree(
|
||||||
RawMode rawMode = std::stoi(perms, 0, 8);
|
RawMode rawMode = std::stoi(perms, 0, 8);
|
||||||
auto modeOpt = decodeMode(rawMode);
|
auto modeOpt = decodeMode(rawMode);
|
||||||
if (!modeOpt)
|
if (!modeOpt)
|
||||||
throw Error("Unknown Git permission: %o", perms);
|
throw Error("Unknown Git permission: %o", rawMode);
|
||||||
auto mode = std::move(*modeOpt);
|
auto mode = std::move(*modeOpt);
|
||||||
|
|
||||||
std::string name = getStringUntil(source, '\0');
|
std::string name = getStringUntil(source, '\0');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue