Log errors written to the status line inside the debug buffer as well

Fixes #1410
This commit is contained in:
Maxime Coste 2017-06-04 08:48:23 +01:00
parent 261e0fabcc
commit 73ecbdbc97

View File

@ -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());
}