about summary refs log tree commit diff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-25T09·23+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-25T09·23+0100
commit4e340a983f928973d3915455d46a4bbadbc3269c (patch)
tree9e6982a87e3293f1e48a66a4d2db13e8db89fcca /src/libexpr/primops.cc
parent976b949e4d194c242c6024bbaa65f4f3b3620225 (diff)
forceString(): Accept pos argument
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index e6edffa46659..ed50c8091b88 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -870,7 +870,7 @@ static void prim_toFile(EvalState & state, const Pos & pos, Value * * args, Valu
 {
     PathSet context;
     string name = state.forceStringNoCtx(*args[0], pos);
-    string contents = state.forceString(*args[1], context);
+    string contents = state.forceString(*args[1], context, pos);
 
     PathSet refs;
 
@@ -1427,7 +1427,7 @@ static void prim_hashString(EvalState & state, const Pos & pos, Value * * args,
       throw Error(format("unknown hash type ‘%1%’, at %2%") % type % pos);
 
     PathSet context; // discarded
-    string s = state.forceString(*args[1], context);
+    string s = state.forceString(*args[1], context, pos);
 
     mkString(v, printHash(hashString(ht, s)), context);
 };