diff options
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r-- | src/libexpr/primops.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index d5708f96b7..8118f84010 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -372,7 +372,7 @@ static Expr primToFile(EvalState & state, const ATermVector & args) for (PathSet::iterator i = context.begin(); i != context.end(); ++i) { if (isDerivation(*i)) - throw EvalError("in `toFile': the file cannot refer to derivation outputs"); + throw EvalError(format("in `toFile': the file `%1%' cannot refer to derivation outputs") % name); refs.insert(*i); } |