summaryrefslogtreecommitdiff
path: root/cli/repl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/repl.rs')
-rw-r--r--cli/repl.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/repl.rs b/cli/repl.rs
index ab8a29aed..8280670ba 100644
--- a/cli/repl.rs
+++ b/cli/repl.rs
@@ -1,5 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
use crate::deno_dir::DenoDir;
+use crate::op_error::OpError;
use deno_core::ErrBox;
use rustyline;
use std::fs;
@@ -88,7 +89,7 @@ impl Repl {
})
}
- pub fn readline(&mut self, prompt: &str) -> Result<String, ErrBox> {
+ pub fn readline(&mut self, prompt: &str) -> Result<String, OpError> {
self
.editor
.readline(&prompt)
@@ -96,7 +97,7 @@ impl Repl {
self.editor.add_history_entry(line.clone());
line
})
- .map_err(ErrBox::from)
+ .map_err(OpError::from)
// Forward error to TS side for processing
}
}