diff --git a/eeschema/libedit/lib_manager.cpp b/eeschema/libedit/lib_manager.cpp index d1c9ce0851..c48847172f 100644 --- a/eeschema/libedit/lib_manager.cpp +++ b/eeschema/libedit/lib_manager.cpp @@ -209,7 +209,17 @@ bool LIB_MANAGER::SaveLibrary( const wxString& aLibrary, const wxString& aFileNa } } - pi->SaveLibrary( aFileName ); + try + { + pi->SaveLibrary( aFileName ); + } + catch( ... ) + { + // return false because something happens. + // The library is not successfully saved + res = false; + } + return res; }