diff --git a/lix/libexpr/eval.cc b/lix/libexpr/eval.cc index cbeb48b86..aa428f5bc 100644 --- a/lix/libexpr/eval.cc +++ b/lix/libexpr/eval.cc @@ -639,7 +639,7 @@ public: } }; -void EvalState::runDebugRepl(const Error * error, const Env & env, const Expr & expr) +void EvalState::runDebugRepl(const EvalError * error, const Env & env, const Expr & expr) { // Make sure we have a debugger to run and we're not already in a debugger. if (!debugRepl || inDebugger) diff --git a/lix/libexpr/eval.hh b/lix/libexpr/eval.hh index 3aa75312c..9b6dc6066 100644 --- a/lix/libexpr/eval.hh +++ b/lix/libexpr/eval.hh @@ -220,7 +220,7 @@ public: return std::shared_ptr();; } - void runDebugRepl(const Error * error, const Env & env, const Expr & expr); + void runDebugRepl(const EvalError * error, const Env & env, const Expr & expr); template [[nodiscard, gnu::noinline]] diff --git a/lix/libexpr/primops.cc b/lix/libexpr/primops.cc index bd09a7215..48c836ea5 100644 --- a/lix/libexpr/primops.cc +++ b/lix/libexpr/primops.cc @@ -567,7 +567,7 @@ static void prim_genericClosure(EvalState & state, const PosIdx pos, Value * * a static void prim_break(EvalState & state, const PosIdx pos, Value * * args, Value & v) { if (state.debugRepl && !state.debugTraces.empty()) { - auto error = Error(ErrorInfo { + auto error = EvalError(state, ErrorInfo { .level = lvlInfo, .msg = HintFmt("breakpoint reached"), .pos = state.positions[pos],