diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-03-22 14:29:22 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-03-22 14:29:22 +0100 |
| commit | 07866e6ae96ce8ebd1ae30bcf92dcf021687ce58 (patch) | |
| tree | 50f414bf041c5f2bec7485e5fda8471bf4ec0b10 /src | |
| parent | 0082238c75e6fc19d29228987e5b4ef735f8c8e4 (diff) | |
show informations on uncaught std::exceptions
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc index 07d55b8c..728ee72d 100644 --- a/src/main.cc +++ b/src/main.cc @@ -871,6 +871,11 @@ int main(int argc, char* argv[]) on_assert_failed(("uncaught exception:\n" + error.description()).c_str()); return -1; } + catch (std::exception& error) + { + on_assert_failed(("uncaught exception:\n"_str + error.what()).c_str()); + return -1; + } catch (...) { on_assert_failed("uncaught exception"); |
