mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
libutil: Use correct argument to Error format ctor
It seems that the intention was to format a number in base 8 (as suggested by the %o format specifier), but `perms` is a `std::string` and not a number. Looks like `rawMode` is the correct thing to use here.
This commit is contained in:
parent
b287f33090
commit
1b5c8aac12
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ void parseTree(
|
|||
RawMode rawMode = std::stoi(perms, 0, 8);
|
||||
auto modeOpt = decodeMode(rawMode);
|
||||
if (!modeOpt)
|
||||
throw Error("Unknown Git permission: %o", perms);
|
||||
throw Error("Unknown Git permission: %o", rawMode);
|
||||
auto mode = std::move(*modeOpt);
|
||||
|
||||
std::string name = getStringUntil(source, '\0');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue