diff --git a/PhotoshopAPI/src/Util/Endian/EndianByteSwapArr.h b/PhotoshopAPI/src/Util/Endian/EndianByteSwapArr.h index f740dba3..91a38d3f 100644 --- a/PhotoshopAPI/src/Util/Endian/EndianByteSwapArr.h +++ b/PhotoshopAPI/src/Util/Endian/EndianByteSwapArr.h @@ -41,7 +41,7 @@ constexpr bool is_little_endian = (std::endian::native == std::endian::little); { if (data.size() % sizeof(T) != 0) { - PSAPI_LOG_ERROR("Endian", "Cannot decode binary data whose size is not divisible by sizeof(T)"); + PSAPI_LOG_ERROR("Endian", "Cannot decode binary data whose size is not divisible by sizeof(T), got size %d and sizeof(T) = %d", data.size(), sizeof(T)); } PROFILE_FUNCTION(); @@ -115,7 +115,7 @@ constexpr bool is_little_endian = (std::endian::native == std::endian::little); { if (data.size() % sizeof(T) != 0) { - PSAPI_LOG_ERROR("Endian", "Cannot decode binary data whose size is not divisible by sizeof(T)"); + PSAPI_LOG_ERROR("Endian", "Cannot decode binary data whose size is not divisible by sizeof(T), got size %d and sizeof(T) = %d", data.size(), sizeof(T)); } PROFILE_FUNCTION(); std::vector decodedData(data.size() / sizeof(T));