summaryrefslogtreecommitdiff
path: root/runtime/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/errors.rs')
-rw-r--r--runtime/errors.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/runtime/errors.rs b/runtime/errors.rs
index 7c497ef32..b3d474504 100644
--- a/runtime/errors.rs
+++ b/runtime/errors.rs
@@ -14,7 +14,6 @@ use deno_core::serde_json;
use deno_core::url;
use deno_core::ModuleResolutionError;
use deno_fetch::reqwest;
-use rustyline::error::ReadlineError;
use std::env;
use std::error::Error;
use std::io;
@@ -82,18 +81,6 @@ fn get_notify_error_class(error: &notify::Error) -> &'static str {
}
}
-fn get_readline_error_class(error: &ReadlineError) -> &'static str {
- use ReadlineError::*;
- match error {
- Io(err) => get_io_error_class(err),
- Eof => "UnexpectedEof",
- Interrupted => "Interrupted",
- #[cfg(unix)]
- Errno(err) => get_nix_error_class(err),
- _ => unimplemented!(),
- }
-}
-
fn get_regex_error_class(error: &regex::Error) -> &'static str {
use regex::Error::*;
match error {
@@ -188,10 +175,6 @@ pub fn get_error_class_name(e: &AnyError) -> Option<&'static str> {
.map(get_notify_error_class)
})
.or_else(|| {
- e.downcast_ref::<ReadlineError>()
- .map(get_readline_error_class)
- })
- .or_else(|| {
e.downcast_ref::<reqwest::Error>()
.map(get_request_error_class)
})