summaryrefslogtreecommitdiff
path: root/src/repl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.rs')
-rw-r--r--src/repl.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/repl.rs b/src/repl.rs
index 107d8a187..55bf4a114 100644
--- a/src/repl.rs
+++ b/src/repl.rs
@@ -1,8 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
use rustyline;
-use rustyline::error::ReadlineError::Interrupted;
-
use crate::msg::ErrorKind;
use std::error::Error;
@@ -10,7 +8,6 @@ use crate::deno_dir::DenoDir;
use crate::errors::new as deno_error;
use crate::errors::DenoResult;
use std::path::PathBuf;
-use std::process::exit;
#[cfg(not(windows))]
use rustyline::Editor;
@@ -99,13 +96,8 @@ impl Repl {
.map(|line| {
self.editor.add_history_entry(line.as_ref());
line
- }).map_err(|e| match e {
- Interrupted => {
- self.save_history().unwrap();
- exit(1)
- }
- e => deno_error(ErrorKind::Other, e.description().to_string()),
- })
+ }).map_err(|e| deno_error(ErrorKind::Other, e.description().to_string()))
+ // Forward error to TS side for processing
}
}