mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 20:46:01 +01:00
remove debug code
This commit is contained in:
parent
9760fa8661
commit
4610e02d04
5 changed files with 5 additions and 35 deletions
|
|
@ -858,17 +858,12 @@ LocalNoInlineNoReturn(void throwAssertionError(const Pos & pos, const char * s,
|
|||
|
||||
LocalNoInlineNoReturn(void throwUndefinedVarError(const Pos & pos, const char * s, const string & s1, Env & env, Expr *expr))
|
||||
{
|
||||
std::cout << "throwUndefinedVarError" << std::endl;
|
||||
|
||||
std::cout << "loggerSettings.showTrace: " << loggerSettings.showTrace << std::endl;
|
||||
|
||||
auto error = UndefinedVarError({
|
||||
.msg = hintfmt(s, s1),
|
||||
.errPos = pos
|
||||
});
|
||||
|
||||
if (debuggerHook && expr) {
|
||||
std::cout << "throwUndefinedVarError debuggerHook" << std::endl;
|
||||
debuggerHook(error, env, *expr);
|
||||
}
|
||||
|
||||
|
|
@ -1525,7 +1520,6 @@ void EvalState::callFunction(Value & fun, size_t nrArgs, Value * * args, Value &
|
|||
|
||||
lambda.body->eval(*this, env2, vCur);
|
||||
} catch (Error & e) {
|
||||
std::cout << "eval showErrorInfo showTrace: " << loggerSettings.showTrace.get() << std::endl;
|
||||
if (loggerSettings.showTrace.get()) {
|
||||
addErrorTrace(e, lambda.pos, "while evaluating %s",
|
||||
(lambda.name.set()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue