Report location of FUTURE_FORMAT_ERRORs when reading footprints.
This commit is contained in:
parent
8589bd3773
commit
8275176792
|
@ -194,10 +194,7 @@ void FP_CACHE::Load()
|
||||||
wxString fpName = fn.GetName();
|
wxString fpName = fn.GetName();
|
||||||
|
|
||||||
if( !footprint )
|
if( !footprint )
|
||||||
{
|
THROW_IO_ERROR( wxEmptyString ); // caught locally, just below...
|
||||||
THROW_IO_ERROR( wxString::Format( _( "Unable to read file '%s'" ),
|
|
||||||
fn.GetFullPath() ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
footprint->SetFPID( LIB_ID( wxEmptyString, fpName ) );
|
footprint->SetFPID( LIB_ID( wxEmptyString, fpName ) );
|
||||||
m_footprints.insert( fpName, new FP_CACHE_ITEM( footprint, fn ) );
|
m_footprints.insert( fpName, new FP_CACHE_ITEM( footprint, fn ) );
|
||||||
|
@ -207,6 +204,8 @@ void FP_CACHE::Load()
|
||||||
if( !cacheError.IsEmpty() )
|
if( !cacheError.IsEmpty() )
|
||||||
cacheError += wxT( "\n\n" );
|
cacheError += wxT( "\n\n" );
|
||||||
|
|
||||||
|
cacheError += wxString::Format( _( "Unable to read file '%s'" ) + '\n',
|
||||||
|
fn.GetFullPath() );
|
||||||
cacheError += ioe.What();
|
cacheError += ioe.What();
|
||||||
}
|
}
|
||||||
} while( dir.GetNext( &fullName ) );
|
} while( dir.GetNext( &fullName ) );
|
||||||
|
|
Loading…
Reference in New Issue