Skip to content

Commit

Permalink
Do not exit the repl when Ctrl-C is pressed, fixes #6870
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Aug 1, 2024
1 parent 1bcf303 commit 4c43d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/repl_cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ pub fn main() -> i32 {
return 0;
}
Err(ReadlineError::Interrupted) => {
// Ctrl-C was pressed
eprintln!("CTRL-C");
return 1;
}
Err(err) => {
eprintln!("REPL error: {err:?}");
Expand Down

0 comments on commit 4c43d54

Please sign in to comment.