mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
Add error context for most basic coercions
This commit is contained in:
parent
00e242feed
commit
be1f069746
21 changed files with 309 additions and 275 deletions
|
@ -112,7 +112,7 @@ Pos findPackageFilename(EvalState & state, Value & v, std::string what)
|
|||
|
||||
// FIXME: is it possible to extract the Pos object instead of doing this
|
||||
// toString + parsing?
|
||||
auto pos = state.forceString(*v2);
|
||||
auto pos = state.forceString(*v2, noPos, "While evaluating the meta.position attribute of a derivation");
|
||||
|
||||
auto colon = pos.rfind(':');
|
||||
if (colon == std::string::npos)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue