mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
stack overflow is EvalBaseError
This commit is contained in:
parent
c97f779dbb
commit
23c7a45a05
2 changed files with 12 additions and 1 deletions
|
@ -146,7 +146,7 @@ inline void EvalState::forceList(Value & v, const PosIdx pos, std::string_view e
|
|||
[[gnu::always_inline]]
|
||||
inline CallDepth EvalState::addCallDepth(const PosIdx pos) {
|
||||
if (callDepth > settings.maxCallDepth)
|
||||
error<EvalError>("stack overflow; max-call-depth exceeded").atPos(pos).debugThrow();
|
||||
error<EvalBaseError>("stack overflow; max-call-depth exceeded").atPos(pos).debugThrow();
|
||||
|
||||
return CallDepth(callDepth);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue