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 {