diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-04T20·19+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-04T20·19+0200 |
commit | bd9b1d97b42f307c8b595bb2de9b15bec1405b23 (patch) | |
tree | 48bd5555658fb2c734bf85ce8bd35eace826cb68 /src/libexpr/eval.hh | |
parent | 8160f794e79a4a2a5269080b408d69fc93d7a305 (diff) |
Show position info in string concatenation / addition errors
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 1d53f498215c..d1bd27f162cf 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -177,7 +177,7 @@ public: string. If `coerceMore' is set, also converts nulls, integers, booleans and lists to a string. If `copyToStore' is set, referenced paths are copied to the Nix store as a side effect. */ - string coerceToString(Value & v, PathSet & context, + string coerceToString(const Pos & pos, Value & v, PathSet & context, bool coerceMore = false, bool copyToStore = true); string copyPathToStore(PathSet & context, const Path & path); @@ -185,7 +185,7 @@ public: /* Path coercion. Converts strings, paths and derivations to a path. The result is guaranteed to be a canonicalised, absolute path. Nothing is copied to the store. */ - Path coerceToPath(Value & v, PathSet & context); + Path coerceToPath(const Pos & pos, Value & v, PathSet & context); public: |