diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-04 21:14:11 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-04 21:14:11 +0200 |
commit | a5fe73094016973a50741db0c5d51ca96c14147b (patch) | |
tree | 28393198f2cd307db18ec160d7139b2e77077ddd /src/libexpr/get-drvs.cc | |
parent | 27b44b8cf7072b09a1929ee44ba784b1c8d5211a (diff) |
forceString: Show position info
Diffstat (limited to 'src/libexpr/get-drvs.cc')
-rw-r--r-- | src/libexpr/get-drvs.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libexpr/get-drvs.cc b/src/libexpr/get-drvs.cc index 4e7690063..88ea68a5f 100644 --- a/src/libexpr/get-drvs.cc +++ b/src/libexpr/get-drvs.cc @@ -41,7 +41,7 @@ DrvInfo::Outputs DrvInfo::queryOutputs() /* For each output... */ for (unsigned int j = 0; j < i->value->list.length; ++j) { /* Evaluate the corresponding set. */ - string name = state->forceStringNoCtx(*i->value->list.elems[j]); + string name = state->forceStringNoCtx(*i->value->list.elems[j], *i->pos); Bindings::iterator out = attrs->find(state->symbols.create(name)); if (out == attrs->end()) continue; // FIXME: throw error? state->forceAttrs(*out->value); @@ -199,11 +199,8 @@ static bool getDerivation(EvalState & state, Value & v, Bindings::iterator i2 = v.attrs->find(state.sSystem); - DrvInfo drv( - state, - state.forceStringNoCtx(*i->value), - attrPath, - i2 == v.attrs->end() ? "unknown" : state.forceStringNoCtx(*i2->value), + DrvInfo drv(state, state.forceStringNoCtx(*i->value), attrPath, + i2 == v.attrs->end() ? "unknown" : state.forceStringNoCtx(*i2->value, *i2->pos), v.attrs); drvs.push_back(drv); |