summaryrefslogtreecommitdiff
path: root/src/client_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-04-11 13:57:35 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-04-11 13:57:35 +0200
commit35d0d5b2eaad64a703f14e507746424d331d1c27 (patch)
tree392a5be82d2ff5c92c51cfb143628566894bdc12 /src/client_manager.cc
parentc699172110ec0e097b933e9ec0ecb3f0083d3c01 (diff)
exceptions: use const char* what() instead of String description()
Diffstat (limited to 'src/client_manager.cc')
-rw-r--r--src/client_manager.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client_manager.cc b/src/client_manager.cc
index 006f4bed..b268df10 100644
--- a/src/client_manager.cc
+++ b/src/client_manager.cc
@@ -67,8 +67,8 @@ void ClientManager::create_client(std::unique_ptr<UserInterface>&& ui,
}
catch (Kakoune::runtime_error& error)
{
- context->print_status({ error.description(), get_color("Error") });
- context->hooks().run_hook("RuntimeError", error.description(), *context);
+ context->print_status({ error.what(), get_color("Error") });
+ context->hooks().run_hook("RuntimeError", error.what(), *context);
}
catch (Kakoune::client_removed&)
{
@@ -84,8 +84,8 @@ void ClientManager::create_client(std::unique_ptr<UserInterface>&& ui,
}
catch (Kakoune::runtime_error& error)
{
- context->print_status({ error.description(), get_color("Error") });
- context->hooks().run_hook("RuntimeError", error.description(), *context);
+ context->print_status({ error.what(), get_color("Error") });
+ context->hooks().run_hook("RuntimeError", error.what(), *context);
}
catch (Kakoune::client_removed&)
{