Skip to content

Commit cdac2ac

Browse files
committed
Use macros for error returns
1 parent 6ed59f1 commit cdac2ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/codegen-data-model/CodegenDataModel_Read.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ CHIP_ERROR CodegenDataModel::ReadAttribute(const InteractionModel::ReadAttribute
362362

363363
if (status != Protocols::InteractionModel::Status::Success)
364364
{
365-
return ChipError(ChipError::SdkPart::kIMGlobalStatus, to_underlying(status), __FILE__, __LINE__);
365+
return CHIP_SDK_ERROR(ChipError::SdkPart::kIMGlobalStatus, to_underlying(status));
366366
}
367367

368368
return EncodeEmberValue(gEmberAttributeIOBufferSpan, attributeMetadata, encoder);

0 commit comments

Comments
 (0)