From e1d0b4049658b7f4b75a22934ba12b132e474061 Mon Sep 17 00:00:00 2001 From: anothersimulacrum Date: Tue, 21 Feb 2023 20:19:28 +0000 Subject: [PATCH] Say ID of item that does not exist for migrations Putting the item id in your face may help you realise you made a typo or similar mistakes. --- src/item_factory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/item_factory.cpp b/src/item_factory.cpp index 63d7ad49f4760..e5707432f8e09 100644 --- a/src/item_factory.cpp +++ b/src/item_factory.cpp @@ -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