Handle non-IOE exceptions in symbol loader

This commit is contained in:
Jon Evans 2023-11-15 12:26:53 -05:00
parent 42e0f7c94e
commit 35edd84269
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;