From 0871b89f4896308f88f7a91cc31787f2374f5920 Mon Sep 17 00:00:00 2001 From: John Haddon Date: Mon, 23 Feb 2026 14:16:04 +0000 Subject: [PATCH] CompoundData : Fix broken format tokens --- Changes | 5 +++++ include/IECore/CompoundData.inl | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 96216b8568..e5bf815f0b 100644 --- a/Changes +++ b/Changes @@ -1,7 +1,12 @@ 10.7.x.x (relative to 10.7.0.0a5) ======== +Fixes +----- +- CompoundData : Fixed bad formatting of exception messages [^1]. + +[^1]: To be omitted from the notes for the final 10.7.0.0 release. 10.7.0.0a5 (relative to 10.7.0.0a4) ========== diff --git a/include/IECore/CompoundData.inl b/include/IECore/CompoundData.inl index 2a212f2e97..ca07a1a2a4 100644 --- a/include/IECore/CompoundData.inl +++ b/include/IECore/CompoundData.inl @@ -102,7 +102,7 @@ T *CompoundData::member( const InternedString &name, bool throwExceptions, bool { if( throwExceptions ) { - throw Exception( fmt::format( "CompoundData child \"%s\" is not of type \"%s\".", name.value(), T::staticTypeName() ) ); + throw Exception( fmt::format( "CompoundData child \"{}\" is not of type \"{}\".", name.value(), T::staticTypeName() ) ); } else { @@ -120,7 +120,7 @@ T *CompoundData::member( const InternedString &name, bool throwExceptions, bool } else if( throwExceptions ) { - throw Exception( fmt::format( "CompoundData has no child named \"%s\".", name.value() ) ); + throw Exception( fmt::format( "CompoundData has no child named \"{}\".", name.value() ) ); } else {