summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2011-09-09 19:24:18 +0000
committerMaxime Coste <frrrwww@gmail.com>2011-09-09 19:24:18 +0000
commit030c5caf0a92c03ec2afca677483044de3bbef56 (patch)
tree055c2ac245445c338ed94321bb56d4154d02dbd8 /src/main.cc
parent3caf96211085254ab3c42a59ce2c80a4ade3d2d8 (diff)
assert: custom implementation
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index 1ec5de6f..d53a059e 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -1,13 +1,13 @@
-#include <ncurses.h>
#include "window.hh"
#include "buffer.hh"
#include "file.hh"
#include "regex_selector.hh"
#include "command_manager.hh"
#include "buffer_manager.hh"
+#include "assert.hh"
#include <unordered_map>
-#include <cassert>
+#include <ncurses.h>
using namespace Kakoune;
@@ -331,6 +331,13 @@ int main()
}
deinit_ncurses();
}
+ catch (Kakoune::exception& error)
+ {
+ deinit_ncurses();
+ puts("uncaught exception:\n");
+ puts(error.description().c_str());
+ return -1;
+ }
catch (...)
{
deinit_ncurses();