mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
fix
This commit is contained in:
parent
fc14197935
commit
ef63ba10a2
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
||||||
namespace nix::eval_cache {
|
namespace nix::eval_cache {
|
||||||
|
|
||||||
CachedEvalError::CachedEvalError(ref<AttrCursor> cursor, Symbol attr)
|
CachedEvalError::CachedEvalError(ref<AttrCursor> cursor, Symbol attr)
|
||||||
: EvalError(cursor->root->state, "cached failure of attribute '%s'", cursor->getAttrPathStr(attr))
|
: EvalError("cached failure of attribute '%s'", cursor->getAttrPathStr(attr))
|
||||||
, cursor(cursor), attr(attr)
|
, cursor(cursor), attr(attr)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
@ -16,13 +16,13 @@ void CachedEvalError::force()
|
||||||
auto & v = cursor->forceValue();
|
auto & v = cursor->forceValue();
|
||||||
|
|
||||||
if (v.type() == nAttrs) {
|
if (v.type() == nAttrs) {
|
||||||
auto a = v.attrs()->get(this->attr);
|
auto a = v.attrs->get(this->attr);
|
||||||
|
|
||||||
state.forceValue(*a->value, a->pos);
|
state.forceValue(*a->value, a->pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shouldn't happen.
|
// Shouldn't happen.
|
||||||
throw EvalError(state, "evaluation of cached failed attribute '%s' unexpectedly succeeded", cursor->getAttrPathStr(attr));
|
throw EvalError("evaluation of cached failed attribute '%s' unexpectedly succeeded", cursor->getAttrPathStr(attr));
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char * schema = R"sql(
|
static const char * schema = R"sql(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue