diff --git a/eeschema/libedit.cpp b/eeschema/libedit.cpp index a6821326fb..853e34d150 100644 --- a/eeschema/libedit.cpp +++ b/eeschema/libedit.cpp @@ -363,8 +363,8 @@ bool LIB_EDIT_FRAME::SaveActiveLibrary( bool newFile ) if( !wxCopyFile( libFileName.GetFullPath(), backupFileName.GetFullPath() ) ) { libFileName.MakeAbsolute(); - msg = _( "Failed to rename old symbol library to file " ) + - backupFileName.GetFullPath(); + msg.Printf( _( "Failed to rename old symbol library to file '%s'" ), + backupFileName.GetFullPath() ); DisplayError( this, msg ); return false; } @@ -384,8 +384,8 @@ bool LIB_EDIT_FRAME::SaveActiveLibrary( bool newFile ) if( !wxCopyFile( docFileName.GetFullPath(), backupFileName.GetFullPath() ) ) { - msg = _( "Failed to save old library document to file " ) + - backupFileName.GetFullPath(); + msg.Printf( _( "Failed to save old library document to file '%s'" ), + backupFileName.GetFullPath() ); DisplayError( this, msg ); return false; } @@ -398,7 +398,7 @@ bool LIB_EDIT_FRAME::SaveActiveLibrary( bool newFile ) if( !wxCopyFile( src.GetFullPath(), libFileName.GetFullPath() ) ) { - msg.Printf( _( "Failed to copy symbol library file " ) + libFileName.GetFullPath() ); + msg.Printf( _( "Failed to copy symbol library file '%s'" ), libFileName.GetFullPath() ); DisplayError( this, msg ); return false; } @@ -407,7 +407,7 @@ bool LIB_EDIT_FRAME::SaveActiveLibrary( bool newFile ) if( !wxCopyFile( src.GetFullPath(), docFileName.GetFullPath() ) ) { - msg.Printf( _( "Failed to copy symbol library document file " ) + + msg.Printf( _( "Failed to copy symbol library document file '%s'" ), docFileName.GetFullPath() ); DisplayError( this, msg ); return false;