From 9890c4e5401911659b36dfd82569fa5a8069fb01 Mon Sep 17 00:00:00 2001 From: anothersimulacrum Date: Sat, 25 Feb 2023 15:24:12 -0500 Subject: [PATCH] Say ID of item that does not exist for migrations (#63721) 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