summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-07-18 15:01:15 -0400
committerGitHub <noreply@github.com>2019-07-18 15:01:15 -0400
commit55ca0f09cb50f8bc6b0590a9a88febc41f91e51b (patch)
treeaa6cd6efc977378986e9f4e25a3cccbdcbda8353
parentbc12a3ba56b39ba8dd3f5afcccebca177361eab2 (diff)
REPL shouldn't panic when it gets SIGINT (#2662)
-rw-r--r--cli/deno_error.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/deno_error.rs b/cli/deno_error.rs
index 544a411ba..41b0d4a94 100644
--- a/cli/deno_error.rs
+++ b/cli/deno_error.rs
@@ -192,6 +192,7 @@ impl GetErrorKind for ReadlineError {
match self {
Io(err) => GetErrorKind::kind(err),
Eof => ErrorKind::UnexpectedEof,
+ Interrupted => ErrorKind::Interrupted,
#[cfg(unix)]
Errno(err) => err.kind(),
_ => unimplemented!(),