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:
parent
6ac8200ff5
commit
a3629ab0cc
4 changed files with 8 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue