From 134be9a1f682d921584f568e63ef8294bd3cddd8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 3 Mar 2016 13:56:42 +0000 Subject: [PATCH] Just write to stderr when exceptions are uncaught --- src/main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cc b/src/main.cc index b1c5a7df..960ba7ec 100644 --- a/src/main.cc +++ b/src/main.cc @@ -805,17 +805,17 @@ int main(int argc, char* argv[]) } catch (Kakoune::exception& error) { - on_assert_failed(format("uncaught exception ({}):\n{}", typeid(error).name(), error.what()).c_str()); + write_stderr(format("uncaught exception ({}):\n{}", typeid(error).name(), error.what())); return -1; } catch (std::exception& error) { - on_assert_failed(format("uncaught exception ({}):\n{}", typeid(error).name(), error.what()).c_str()); + write_stderr(format("uncaught exception ({}):\n{}", typeid(error).name(), error.what())); return -1; } catch (...) { - on_assert_failed("uncaught exception"); + write_stderr("uncaught exception"); return -1; } return 0;