Better message on PCM repository error

Fixes https://gitlab.com/kicad/code/kicad/-/issues/9587
This commit is contained in:
qu1ck 2022-10-16 16:39:09 -07:00 committed by Seth Hillbrand
parent 6be87d41e1
commit d52d1cb489
1 changed files with 5 additions and 1 deletions

View File

@ -316,7 +316,11 @@ bool PLUGIN_CONTENT_MANAGER::FetchRepository( const wxString& aUrl, PCM_REPOSITO
catch( const std::exception& e )
{
if( m_dialog )
wxLogError( wxString::Format( _( "Unable to parse repository:\n\n%s" ), e.what() ) );
{
wxLogError( wxString::Format( _( "Unable to parse repository: %s" ), e.what() ) );
wxLogError( _( "The given repository URL does not look like a valid KiCad package "
"repository. Please double check the URL." ) );
}
return false;
}