diff --git a/src/app/ReadClient.cpp b/src/app/ReadClient.cpp index f10ae76cd54b0e..5a24bbbefb1d4f 100644 --- a/src/app/ReadClient.cpp +++ b/src/app/ReadClient.cpp @@ -345,7 +345,7 @@ CHIP_ERROR ReadClient::GenerateEventPaths(EventPathIBs::Builder & aEventPathsBui { for (auto & event : aEventPaths) { - VerifyOrReturnError(event.IsValidEventPath(), CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH_IB); + VerifyOrReturnError(event.IsValidEventPath(), CHIP_ERROR_IM_MALFORMED_EVENT_PATH_IB); EventPathIB::Builder & path = aEventPathsBuilder.CreatePath(); ReturnErrorOnFailure(aEventPathsBuilder.GetError()); ReturnErrorOnFailure(path.Encode(event));