diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-03-03 13:56:42 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-03-03 14:05:07 +0000 |
| commit | 134be9a1f682d921584f568e63ef8294bd3cddd8 (patch) | |
| tree | 13fb2638dd62f10a69d9d5aac10ecfd9be33b602 /src | |
| parent | b5b5b82c70533c833396fbe490e860d4820ca022 (diff) | |
Just write to stderr when exceptions are uncaught
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cc | 6 |
1 files 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; |
