diff --git a/eeschema/tools/sch_editor_control.cpp b/eeschema/tools/sch_editor_control.cpp index ee1431b8c1..198409b11a 100644 --- a/eeschema/tools/sch_editor_control.cpp +++ b/eeschema/tools/sch_editor_control.cpp @@ -398,9 +398,9 @@ int SCH_EDITOR_CONTROL::ExportSymbolsToLibrary( const TOOL_EVENT& aEvent ) if( !mgr.CreateLibrary( fn.GetFullPath(), libTable ) ) { - DisplayError( m_frame, wxString::Format( _( "Could not add library '%s'." ), + DisplayError( m_frame, wxString::Format( _( "Could not add library '%s'." ), targetLib ) ); - return 0; + return 0; } } else