mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Catch IO_ERROR thrown in timestamp gen
Missing nickname can throw when generating a timestamp, this should be caught and prevent further work in the footprint loading (the entry does not exist) Fixes https://gitlab.com/kicad/code/kicad/issues/13029
This commit is contained in:
parent
4f4e355ce5
commit
1a670f4673
@ -98,7 +98,15 @@ bool FOOTPRINT_LIST_IMPL::CatchErrors( const std::function<void()>& aFunc )
|
|||||||
bool FOOTPRINT_LIST_IMPL::ReadFootprintFiles( FP_LIB_TABLE* aTable, const wxString* aNickname,
|
bool FOOTPRINT_LIST_IMPL::ReadFootprintFiles( FP_LIB_TABLE* aTable, const wxString* aNickname,
|
||||||
PROGRESS_REPORTER* aProgressReporter )
|
PROGRESS_REPORTER* aProgressReporter )
|
||||||
{
|
{
|
||||||
long long int generatedTimestamp = aTable->GenerateTimestamp( aNickname );
|
long long int generatedTimestamp = 0;
|
||||||
|
|
||||||
|
if( !CatchErrors( [&]()
|
||||||
|
{
|
||||||
|
generatedTimestamp = aTable->GenerateTimestamp( aNickname );
|
||||||
|
} ) )
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if( generatedTimestamp == m_list_timestamp )
|
if( generatedTimestamp == m_list_timestamp )
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user