aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/repl.cpp1
-rw-r--r--src/resp.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index 50064f8..b70618e 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -35,6 +35,7 @@ readParseType(CEnv& cenv, Cursor& cursor, istream& is, const AST*& exp, const AS
try {
exp = cenv.penv.parse(cursor, is);
} catch (Error e) {
+ cerr << e.what() << endl;
is.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); // Skip REPL junk
throw e;
}
diff --git a/src/resp.cpp b/src/resp.cpp
index 66847fd..2c26927 100644
--- a/src/resp.cpp
+++ b/src/resp.cpp
@@ -163,6 +163,7 @@ main(int argc, char** argv)
is.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); // Skip newlines
}
} catch (Error e) {
+ cerr << e.what() << endl;
}
is.close();
}