1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

move ignore-try to EvalSettings

This commit is contained in:
Ben Burdette 2022-07-11 10:47:09 -06:00
parent 6ac8200ff5
commit a3629ab0cc
4 changed files with 8 additions and 12 deletions

View file

@ -91,12 +91,6 @@ EvalCommand::EvalCommand()
.description = "start an interactive environment if evaluation fails",
.handler = {&startReplOnEvalErrors, true},
});
addFlag({
.longName = "ignore-try",
.description = "ignore exceptions in try clauses during debug",
.handler = {&ignoreExceptionsDuringTry, true},
});
}
EvalCommand::~EvalCommand()
@ -128,9 +122,6 @@ ref<EvalState> EvalCommand::getEvalState()
if (startReplOnEvalErrors) {
evalState->debugRepl = &runRepl;
};
if (ignoreExceptionsDuringTry) {
evalState->ignoreTry = ignoreExceptionsDuringTry;
};
}
return ref<EvalState>(evalState);
}