aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.rs')
-rw-r--r--src/repl.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/repl.rs b/src/repl.rs
index c6d8b07..e05624e 100644
--- a/src/repl.rs
+++ b/src/repl.rs
@@ -16,6 +16,7 @@ pub fn repl() {
}
let repl = read().and_then(|line| {
+ eprint!("running '{}'\r\n", line);
eval(&line).fold(None, |acc, event| match event {
crate::process::ProcessEvent::Output(out) => {
match print(&out) {
@@ -46,7 +47,7 @@ pub fn repl() {
let mut stderr = stderr.lock();
write!(stderr, "error: {:?}\r\n", e).unwrap();
stderr.flush().unwrap();
- return Err(());
+ return Ok((done, false));
}
}))
});