Skip to content

Commit

Permalink
Capture all error(...) calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
can1357 committed Aug 17, 2020
1 parent cbe48e4 commit 147df42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NoVmp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ static const std::string gpl3_license_header = ""

int main( int argc, const char** argv )
{
vtil::logger::error_hook = [ ] ( const std::string& message )
{
log<CON_RED>( "[*] Unexpected error: %s\n", message );
throw std::runtime_error( message );
};

// Feelin' fancy.
//
Expand Down

0 comments on commit 147df42

Please sign in to comment.