summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-06-04 08:48:23 +0100
committerMaxime Coste <mawww@kakoune.org>2017-06-04 08:48:23 +0100
commit73ecbdbc97f422e67ef1da9972ba7b357fa3ca12 (patch)
tree75fd86f3f5b08a1278b59f3fff9cee61291ea240 /src/client.cc
parent261e0fabccad0e147592d41b38390bdef24dd69d (diff)
Log errors written to the status line inside the debug buffer as well
Fixes #1410
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.cc b/src/client.cc
index 7389b224..aea878c0 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -92,6 +92,7 @@ bool Client::process_pending_inputs()
}
catch (Kakoune::runtime_error& error)
{
+ write_to_debug_buffer(format("Error: {}", error.what()));
context().print_status({ error.what().str(), get_face("Error") });
context().hooks().run_hook("RuntimeError", error.what(), context());
}