diff options
author | Domen Kožar <domen@dev.si> | 2020-04-16 12:32:07 +0200 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2020-04-16 12:32:07 +0200 |
commit | b865b5b40c13cfff32e1a0ab685baff1bef5ae5d (patch) | |
tree | 32589e07f4e3683e7ddab5984ddd93bf218619d2 /src/libexpr/eval-inline.hh | |
parent | 2f9789c2e668056898639781eb31544c0e5c765b (diff) |
pass Pos to forceValue to improve infinite recursion error
Diffstat (limited to 'src/libexpr/eval-inline.hh')
-rw-r--r-- | src/libexpr/eval-inline.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/eval-inline.hh b/src/libexpr/eval-inline.hh index c27116e3b..942cda1ea 100644 --- a/src/libexpr/eval-inline.hh +++ b/src/libexpr/eval-inline.hh @@ -57,7 +57,7 @@ inline void EvalState::forceAttrs(Value & v) inline void EvalState::forceAttrs(Value & v, const Pos & pos) { - forceValue(v); + forceValue(v, pos); if (v.type != tAttrs) throwTypeError("value is %1% while a set was expected, at %2%", v, pos); } @@ -73,7 +73,7 @@ inline void EvalState::forceList(Value & v) inline void EvalState::forceList(Value & v, const Pos & pos) { - forceValue(v); + forceValue(v, pos); if (!v.isList()) throwTypeError("value is %1% while a list was expected, at %2%", v, pos); } |