Skip to content

Commit

Permalink
Log detail info for DeviceLostException
Browse files Browse the repository at this point in the history
  • Loading branch information
Try committed Jul 1, 2024
1 parent d311e6e commit a3d6c93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions game/utils/crashlog.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "crashlog.h"
#include "commandline.h"

#include <Tempest/Except>
#include <Tempest/Platform>

#include <iostream>
Expand Down Expand Up @@ -63,6 +64,9 @@ static void terminateHandler() {
std::signal(SIGABRT, SIG_DFL); // avoid recursion
std::abort();
}
catch (Tempest::DeviceLostException& e) {
std::snprintf(msg,sizeof(msg),"DeviceLostException(%s)",e.what());
}
catch (std::system_error& e) {
std::snprintf(msg,sizeof(msg),"std::system_error(%s)",e.what());
}
Expand Down

0 comments on commit a3d6c93

Please sign in to comment.