diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-07-18 15:01:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-18 15:01:15 -0400 |
commit | 55ca0f09cb50f8bc6b0590a9a88febc41f91e51b (patch) | |
tree | aa6cd6efc977378986e9f4e25a3cccbdcbda8353 | |
parent | bc12a3ba56b39ba8dd3f5afcccebca177361eab2 (diff) |
REPL shouldn't panic when it gets SIGINT (#2662)
-rw-r--r-- | cli/deno_error.rs | 1 |
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!(), |