Skip to content

Commit

Permalink
[chip-tool] The error is not reported over websocket when a read/subs…
Browse files Browse the repository at this point in the history
…cribe action has a global error
  • Loading branch information
vivien-apple committed May 25, 2023
1 parent 9f43988 commit dc128df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/chip-tool/commands/clusters/ReportCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ class ReportCommand : public InteractionModelReports, public ModelCommand, publi

void OnError(CHIP_ERROR error) override
{
ReturnOnFailure(RemoteDataModelLogger::LogErrorAsJSON(error));

ChipLogProgress(chipTool, "Error: %s", chip::ErrorStr(error));
mError = error;
}
Expand Down

0 comments on commit dc128df

Please sign in to comment.