about summary refs log tree commit diff
path: root/src/libexpr/eval-inline.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-31T18·28+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-07-31T18·28+0200
commit2bac04c5ff66092cf1cb42096feb3554a92fa98e (patch)
treeb84b0576b9acba4f50594d206d65305e40f87882 /src/libexpr/eval-inline.hh
parent75837651f15fc3c451ae54afbb5927c1abe329c5 (diff)
Fix stack consumption
Diffstat (limited to 'src/libexpr/eval-inline.hh')
-rw-r--r--src/libexpr/eval-inline.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/eval-inline.hh b/src/libexpr/eval-inline.hh
index 4abc485aa471..8dee5ee46862 100644
--- a/src/libexpr/eval-inline.hh
+++ b/src/libexpr/eval-inline.hh
@@ -8,9 +8,9 @@
 
 namespace nix {
 
-LocalNoInlineNoReturn(void throwEvalError(const FormatOrString & fs))
+LocalNoInlineNoReturn(void throwEvalError(const char * s, const Pos & pos))
 {
-    throw EvalError(fs);
+    throw EvalError(format(s) % pos);
 }
 
 LocalNoInlineNoReturn(void throwTypeError(const char * s, const Value & v))
@@ -44,7 +44,7 @@ void EvalState::forceValue(Value & v, const Pos & pos)
     else if (v.type == tApp)
         callFunction(*v.app.left, *v.app.right, v, noPos);
     else if (v.type == tBlackhole)
-        throwEvalError(format("infinite recursion encountered, at %1%") % pos);
+        throwEvalError("infinite recursion encountered, at %1%", pos);
 }