mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
more fixes
This commit is contained in:
parent
1b5a8db148
commit
13c4dc6532
19 changed files with 239 additions and 231 deletions
|
@ -63,7 +63,7 @@ inline void EvalState::forceAttrs(Value & v, Callable getPos, const std::string
|
|||
{
|
||||
forceValue(v, getPos);
|
||||
if (v.type() != nAttrs)
|
||||
throwTypeError(getPos(), "%2%: value is %1% while a set was expected", v, errorCtx);
|
||||
throwTypeError(getPos(), "%2%value is %1% while a set was expected", v, errorCtx);
|
||||
}
|
||||
|
||||
|
||||
|
@ -71,7 +71,7 @@ inline void EvalState::forceList(Value & v, const Pos & pos, const std::string &
|
|||
{
|
||||
forceValue(v, pos);
|
||||
if (!v.isList())
|
||||
throwTypeError(pos, "%2%: value is %1% while a list was expected", v, errorCtx);
|
||||
throwTypeError(pos, "%2%value is %1% while a list was expected", v, errorCtx);
|
||||
}
|
||||
|
||||
/* Note: Various places expect the allocated memory to be zeroed. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue