Skip to content

Commit

Permalink
Say ID of item that does not exist for migrations
Browse files Browse the repository at this point in the history
Putting the item id in your face may help you realise you made a typo or
similar mistakes.
  • Loading branch information
anothersimulacrum committed Feb 21, 2023
1 parent 1ac9d06 commit e1d0b40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/item_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,8 @@ void Item_factory::finalize_item_blacklist()
const migration *parent = nullptr;
for( const migration &migrant : migrate.second ) {
if( m_templates.count( migrant.replace ) == 0 ) {
debugmsg( "Replacement item for migration %s does not exist", migrate.first.c_str() );
debugmsg( "Replacement item (%s) for migration %s does not exist", migrant.replace.str(),
migrate.first.c_str() );
continue;
}
// The rest of this only applies to blanket migrations
Expand Down

0 comments on commit e1d0b40

Please sign in to comment.