minor change in cvpcb (better error message when a .cmp file is not found)

This commit is contained in:
jean-pierre charras 2011-03-18 15:33:55 +01:00
parent 21b75f396b
commit 4254ddc814
2 changed files with 6 additions and 2 deletions

View File

@ -9,9 +9,12 @@
#define KICAD_BUILD_VERSION "(2011-03-17)"
#endif
// uncomment this line only when creating a stable version
//#define VERSION_STABILITY "stable"
#define VERSION_STABILITY "testing"
#ifndef VERSION_STABILITY
#define VERSION_STABILITY "testing"
#endif
/**
* Function GetBuildVersion

View File

@ -82,8 +82,9 @@ bool CVPCB_MAINFRAME::LoadComponentFile( const wxString& fileName )
source = wxFopen( fn.GetFullPath(), wxT( "rt" ) );
if( source == NULL )
{
msg.Printf( _( "Cannot open component library <%s>." ),
msg.Printf( _( "Cannot open CvPcb component file <%s>." ),
GetChars( fn.GetFullPath() ) );
msg << wxT("\n") << _("This is normal if you are opening a new netlist file");
wxMessageBox( msg, titleComponentLibErr, wxOK | wxICON_ERROR );
return false;
}