main: catch all exceptions
This commit is contained in:
parent
77dc9955d3
commit
8f3d2ae089
|
@ -892,8 +892,12 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
catch (Kakoune::exception& error)
|
catch (Kakoune::exception& error)
|
||||||
{
|
{
|
||||||
puts("uncaught exception:\n");
|
on_assert_failed(("uncaught exception:\n" + error.description()).c_str());
|
||||||
puts(error.description().c_str());
|
return -1;
|
||||||
|
}
|
||||||
|
catch (...)
|
||||||
|
{
|
||||||
|
on_assert_failed("uncaught exception");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user