Skip to content

Commit

Permalink
switch : try to determine exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Dec 7, 2023
1 parent a92b040 commit 18b2205
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Gaffer/Switch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,16 @@ void Switch::plugInputChanged( Plug *plug )
updateInternalConnection();
}
}
catch( const std::exception &e )
{
std::cerr << "STD ERROR IN Switch::plugInputChanged" << std::endl;
std::cerr << e.what() << std::endl;
}
catch( ... )
{
std::cerr << "ERROR IN Switch::plugInputChanged" << std::endl;
std::cerr << "UNKNOWN ERROR IN Switch::plugInputChanged" << std::endl;
int status;
std::cerr << "EXCEPTION TYPE IS " << abi::__cxa_demangle(abi::__cxa_current_exception_type()->name(), 0, 0, &status) << std::endl;;
throw;
}
}
Expand Down

0 comments on commit 18b2205

Please sign in to comment.