Handle non-IOE exceptions in symbol loader

(cherry picked from commit 35edd84269)
This commit is contained in:
Jon Evans 2023-11-15 12:26:53 -05:00
parent 27434e38f9
commit fe69da4cb8
1 changed files with 8 additions and 0 deletions

View File

@ -125,6 +125,14 @@ std::vector<SYMBOL_ASYNC_LOADER::LOADED_PAIR> SYMBOL_ASYNC_LOADER::worker()
std::lock_guard<std::mutex> lock( m_errorMutex );
m_errors += msg;
}
catch( std::exception& e )
{
wxString msg = wxString::Format( _( "Error loading symbol library %s.\n\n%s\n" ),
nickname, e.what() );
std::lock_guard<std::mutex> lock( m_errorMutex );
m_errors += msg;
}
}
return ret;