Commit 37d73b03 authored by Dick Hollenbeck's avatar Dick Hollenbeck

fix more IO_ERROR() constructor issues

parent 02e1f839
...@@ -362,7 +362,7 @@ DIR_LIB_SOURCE::DIR_LIB_SOURCE( const STRING& aDirectoryPath, ...@@ -362,7 +362,7 @@ DIR_LIB_SOURCE::DIR_LIB_SOURCE( const STRING& aDirectoryPath,
if( sourceURI.size() == 0 ) if( sourceURI.size() == 0 )
{ {
throw( IO_ERROR( "aDirectoryPath cannot be empty" ) ); throw( IO_ERROR( STRING("aDirectoryPath cannot be empty") ) );
} }
// remove any trailing separator, so we can add it back later without ambiguity // remove any trailing separator, so we can add it back later without ambiguity
......
...@@ -134,12 +134,13 @@ void LIB_TABLE::Parse( SCH_LIB_TABLE_LEXER* in ) throw( IO_ERROR ) ...@@ -134,12 +134,13 @@ void LIB_TABLE::Parse( SCH_LIB_TABLE_LEXER* in ) throw( IO_ERROR )
// before any fall back. // before any fall back.
if( !InsertRow( row ) ) if( !InsertRow( row ) )
{ {
char buf[300]; STRING msg;
snprintf( buf, sizeof(buf), msg += '\'';
"'%s' is a duplicate logical lib name", msg += row->logicalName;
row->logicalName.c_str() ); msg += '\'';
throw IO_ERROR( buf ); msg += " is a duplicate logical lib name";
throw IO_ERROR( msg );
} }
} }
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment