about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-10-17T14·01+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-10-17T14·01+0000
commit4bd5cdb90b980bd5e0eec86bf3fcfdd3b07946d1 (patch)
treeda35aece732449c6db41711b809053e639ad8de4 /src/libexpr
parent58ff6939f4713063dabd77d485689691a82dbb3b (diff)
* Print out the offending path.
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/eval.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 31e9c462f365..2a5019fd9a22 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -572,9 +572,10 @@ Expr evalExpr2(EvalState & state, Expr e)
             ATerm p;
             if (matchAttrs(e1, as) && matchPath(e2, p)) {
                 static bool haveWarned = false;
-                warnOnce(haveWarned,
+                warnOnce(haveWarned, format(
                     "concatenation of a derivation and a path is deprecated, "
-                    "you should write `drv + \"/path\"' instead of `drv + /path'");
+                    "you should write `drv + \"%1%\"' instead of `drv + %1%'")
+                    % aterm2String(p));
                 PathSet context;
                 return makeStr(
                     coerceToString(state, makeSelect(e1, toATerm("outPath")), context)