diff options
-rw-r--r-- | src/libexpr/get-drvs.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/get-drvs.cc b/src/libexpr/get-drvs.cc index fe4d3a7d5..d7869d09b 100644 --- a/src/libexpr/get-drvs.cc +++ b/src/libexpr/get-drvs.cc @@ -447,7 +447,8 @@ static void getDerivations(EvalState & state, Value & vIn, return; } else if (v.type() != nAttrs) { 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(); } |