aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-10-19 17:43:58 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-10-19 17:43:58 +0000
commit17f4883bfeb27c3fb6f28bd8ff8c6bbf65e6ea84 (patch)
tree59ef5c38868370f7771eef239e2fafd0969a2f2e /src/libexpr
parent9bd93f76069fdf25688ce984a17798ab0834202f (diff)
* Better message.
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index d5708f96b..8118f8401 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);
}