fix(tvix/eval): always add history entries in REPL

... even if the code is broken.

Change-Id: I5898bceaebf201b97e8988c94c90e7fafff82529
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6462
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-09-05 05:12:36 +03:00 committed by tazjin
parent 4e06e5d2ba
commit 8643620eb1

View file

@ -62,10 +62,10 @@ fn run_prompt() {
continue;
}
rl.add_history_entry(&line);
match tvix_eval::interpret(&line, None) {
Ok(result) => {
println!("=> {} :: {}", result, result.type_of());
rl.add_history_entry(line);
}
Err(err) => println!("{}", err),
}