From 677fcee0d2f4c643de2c262d433bd57e8db71c68 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 11 Jan 2020 16:26:44 +0000 Subject: [PATCH] Remove exception which is not caught in most code paths. --- eeschema/symbol_lib_table.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/eeschema/symbol_lib_table.cpp b/eeschema/symbol_lib_table.cpp index aed251560b..e28ce38a20 100644 --- a/eeschema/symbol_lib_table.cpp +++ b/eeschema/symbol_lib_table.cpp @@ -286,12 +286,8 @@ SYMBOL_LIB_TABLE_ROW* SYMBOL_LIB_TABLE::FindRow( const wxString& aNickname ) if( !row ) { - wxString msg; - - msg.Printf( _( "sym-lib-table files contain no library with nickname \"%s\"" ), - aNickname ); - - THROW_IO_ERROR( msg ); + wxFAIL_MSG( "sym-lib-table files contain no library with nickname " + aNickname ); + return nullptr; } // We've been 'lazy' up until now, but it cannot be deferred any longer,