From ef63ba10a27a2b9a04c321d395939ba327107695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Sun, 8 Sep 2024 11:55:34 -0400 Subject: [PATCH] fix --- src/libexpr/eval-cache.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libexpr/eval-cache.cc b/src/libexpr/eval-cache.cc index c058cfb3a..210f43f4d 100644 --- a/src/libexpr/eval-cache.cc +++ b/src/libexpr/eval-cache.cc @@ -7,7 +7,7 @@ namespace nix::eval_cache { CachedEvalError::CachedEvalError(ref 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) { } @@ -16,13 +16,13 @@ void CachedEvalError::force() auto & v = cursor->forceValue(); if (v.type() == nAttrs) { - auto a = v.attrs()->get(this->attr); + auto a = v.attrs->get(this->attr); state.forceValue(*a->value, a->pos); } // 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(