mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-11 10:55:31 +03:00
Do not exit the repl when Ctrl-C is pressed, fixes #6870
This commit is contained in:
parent
1bcf30391b
commit
4c43d54177
@ -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:?}");
|
||||
|
Loading…
Reference in New Issue
Block a user