diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-08-17 13:43:39 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-08-17 13:43:39 +0200 |
commit | 7cdc739ece681128dd4153e53acb85867accdd1b (patch) | |
tree | c6c202a7f596f1077a3b6295344367b937963a5d /src/libexpr/eval-cache.hh | |
parent | bf290c2306d8554b82a9f1d30279b90bf8606fa6 (diff) | |
parent | e849b198720c60c186c8f9486c43c495ad436e1b (diff) |
Merge remote-tracking branch 'origin/master' into markdown
Diffstat (limited to 'src/libexpr/eval-cache.hh')
-rw-r--r-- | src/libexpr/eval-cache.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libexpr/eval-cache.hh b/src/libexpr/eval-cache.hh index afee85fa9..8ffffc0ed 100644 --- a/src/libexpr/eval-cache.hh +++ b/src/libexpr/eval-cache.hh @@ -9,6 +9,8 @@ namespace nix::eval_cache { +MakeError(CachedEvalError, EvalError); + class AttrDb; class AttrCursor; @@ -92,11 +94,11 @@ public: std::string getAttrPathStr(Symbol name) const; - std::shared_ptr<AttrCursor> maybeGetAttr(Symbol name); + std::shared_ptr<AttrCursor> maybeGetAttr(Symbol name, bool forceErrors = false); std::shared_ptr<AttrCursor> maybeGetAttr(std::string_view name); - std::shared_ptr<AttrCursor> getAttr(Symbol name); + std::shared_ptr<AttrCursor> getAttr(Symbol name, bool forceErrors = false); std::shared_ptr<AttrCursor> getAttr(std::string_view name); |