1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 16:51:15 +02:00

Add some context to coercion error strings

This commit is contained in:
Guillaume Maudoux 2022-03-03 21:46:20 +01:00
parent 391f4fcabe
commit 00e242feed
2 changed files with 15 additions and 26 deletions

View file

@ -217,9 +217,8 @@ public:
/* Evaluation the expression, then verify that it has the expected
type. */
inline bool evalBool(Env & env, Expr * e);
inline bool evalBool(Env & env, Expr * e, const Pos & pos);
inline void evalAttrs(Env & env, Expr * e, Value & v);
inline bool evalBool(Env & env, Expr * e, const Pos & pos, const std::string & location);
inline void evalAttrs(Env & env, Expr * e, Value & v, const Pos & pos, const std::string & location);
/* If `v' is a thunk, enter it and overwrite `v' with the result
of the evaluation of the thunk. If `v' is a delayed function