libexpr: include the type of the non-derivation value in the type error
Change-Id: Id4717b5b0df7c09b0dbf17e642d8713a0a3efbae
This commit is contained in:
parent
5ffed6d06a
commit
4f6a3d7e9e
1 changed files with 2 additions and 1 deletions
|
@ -447,7 +447,8 @@ static void getDerivations(EvalState & state, Value & vIn,
|
||||||
return;
|
return;
|
||||||
} else if (v.type() != nAttrs) {
|
} else if (v.type() != nAttrs) {
|
||||||
state.error<TypeError>(
|
state.error<TypeError>(
|
||||||
"expression does not evaluate to a derivation (or a list or set of those)"
|
"expression was expected to be a derivation or collection of derivations, but instead was %s",
|
||||||
|
showType(v.type(), true)
|
||||||
).debugThrow();
|
).debugThrow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue